On 02/03/2017 01:18 PM, Hannes Reinecke wrote:
From: Johannes Thumshirn <jthumsh...@suse.de>

Check for a valid direction before starting the request, otherwise we risk
running into an assertion in the scsi midlayer checking for vaild requests.

Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de>
Link: http://www.spinics.net/lists/linux-scsi/msg104400.html
Reported-by: Dmitry Vyukov <dvyu...@google.com>
Signed-off-by: Hannes Reinecke <h...@suse.com>
---
[...]

+static bool sg_is_valid_dxfer(sg_io_hdr_t *hp)
+{
+       switch (dxfer_direction) {

This wont build now... needs a +hp


Reply via email to