On 02/03/2017 01:18 PM, Hannes Reinecke wrote:
From: Johannes Thumshirn <jthumshirn@xxxxxxx>
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 <jthumshirn@xxxxxxx>
Link: http://www.spinics.net/lists/linux-scsi/msg104400.html
Reported-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
Signed-off-by: Hannes Reinecke <hare@xxxxxxxx>
---
[...]
+static bool sg_is_valid_dxfer(sg_io_hdr_t *hp)
+{
+ switch (dxfer_direction) {
This wont build now... needs a +hp