Message ID | 20210823133458.3536824-1-pasic@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | scsi: scsi_ioctl: fix error code propagation in SG_IO | expand |
Halil, > Fixes: f2542a3be327 ("scsi: scsi_ioctl: Move the "block layer" SCSI > ioctl handling to drivers/scsi") Applied to 5.15/scsi-staging, thanks!
On Mon, 23 Aug 2021 15:34:58 +0200, Halil Pasic wrote:
>
Applied to 5.15/scsi-queue, thanks!
[1/1] scsi: scsi_ioctl: fix error code propagation in SG_IO
https://git.kernel.org/mkp/scsi/c/04a71cdc46a9
diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c index 7b2b0a1581f4..6ff2207bd45a 100644 --- a/drivers/scsi/scsi_ioctl.c +++ b/drivers/scsi/scsi_ioctl.c @@ -874,7 +874,7 @@ static int scsi_ioctl_sg_io(struct scsi_device *sdev, struct gendisk *disk, return error; if (put_sg_io_hdr(&hdr, argp)) return -EFAULT; - return 0; + return error; } /**