summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorHalil Pasic <pasic@linux.ibm.com>2021-08-23 16:34:58 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-25 05:56:32 +0300
commit04a71cdc46a94b13ee876290ad961b4886e24c76 (patch)
tree16f444801cd020efcc1e80ee02c1255d7ddc9807 /drivers/scsi
parent6c9783e6296e8c7bf45464c00a52c457b4c321b5 (diff)
downloadlinux-04a71cdc46a94b13ee876290ad961b4886e24c76.tar.xz
scsi: core: scsi_ioctl: Fix error code propagation in SG_IO
Link: https://lore.kernel.org/r/20210823133458.3536824-1-pasic@linux.ibm.com Fixes: f2542a3be327 ("scsi: scsi_ioctl: Move the "block layer" SCSI ioctl handling to drivers/scsi") Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Halil Pasic <pasic@linux.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_ioctl.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/**