Skip to content

Commit 04a71cd

Browse files
halil-pasicmartinkpetersen
authored andcommitted
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: f2542a3 ("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>
1 parent 6c9783e commit 04a71cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/scsi_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ static int scsi_ioctl_sg_io(struct scsi_device *sdev, struct gendisk *disk,
874874
return error;
875875
if (put_sg_io_hdr(&hdr, argp))
876876
return -EFAULT;
877-
return 0;
877+
return error;
878878
}
879879

880880
/**

0 commit comments

Comments
 (0)