Re: [PATCH v2] scsi: sg: fix SG_DXFER_FROM_DEV transfers

From: Martin K. Petersen
Date: Wed Jul 12 2017 - 17:18:24 EST



Johannes,

> SG_DXFER_FROM_DEV transfers do not necessarily have a dxferp as we set
> it to NULL for the old sg_io read/write interface, but must have a
> length bigger than 0. This fixes a regression introduced by commit
> 28676d869bbb ("scsi: sg: check for valid direction before starting the
> request")

Applied to 4.13/scsi-fixes. Thank you!

--
Martin K. Petersen Oracle Linux Engineering