aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHalil Pasic <[email protected]>2021-08-23 15:34:58 +0200
committerMartin K. Petersen <[email protected]>2021-08-24 22:56:32 -0400
commit04a71cdc46a94b13ee876290ad961b4886e24c76 (patch)
tree16f444801cd020efcc1e80ee02c1255d7ddc9807
parent6c9783e6296e8c7bf45464c00a52c457b4c321b5 (diff)
scsi: core: scsi_ioctl: Fix error code propagation in SG_IO
Link: https://lore.kernel.org/r/[email protected] Fixes: f2542a3be327 ("scsi: scsi_ioctl: Move the "block layer" SCSI ioctl handling to drivers/scsi") Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Halil Pasic <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-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;
}
/**