LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO
@ 2021-08-23 13:34 Halil Pasic
  2021-08-24  3:23 ` Martin K. Petersen
  2021-08-28  2:32 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Halil Pasic @ 2021-08-23 13:34 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, linux-scsi, linux-kernel
  Cc: Halil Pasic, Christoph Hellwig, Jens Axboe, FUJITA Tomonori,
	Doug Gilbert, Kai Mäkisara, linux-block, oliver.sang

Fixes: f2542a3be327 ("scsi: scsi_ioctl: Move the "block layer" SCSI
ioctl handling to drivers/scsi")
Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
---
This is a patch against the for-next branch of
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git and/or
linux-next/master.
---
 drivers/scsi/scsi_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
 
 /**
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO
  2021-08-23 13:34 [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO Halil Pasic
@ 2021-08-24  3:23 ` Martin K. Petersen
  2021-08-28  2:32 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2021-08-24  3:23 UTC (permalink / raw)
  To: Halil Pasic
  Cc: James E.J. Bottomley, Martin K. Petersen, linux-scsi,
	linux-kernel, Christoph Hellwig, Jens Axboe, FUJITA Tomonori,
	Doug Gilbert, Kai Mäkisara, linux-block, oliver.sang


Halil,

> Fixes: f2542a3be327 ("scsi: scsi_ioctl: Move the "block layer" SCSI
> ioctl handling to drivers/scsi")

Applied to 5.15/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO
  2021-08-23 13:34 [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO Halil Pasic
  2021-08-24  3:23 ` Martin K. Petersen
@ 2021-08-28  2:32 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2021-08-28  2:32 UTC (permalink / raw)
  To: James E.J. Bottomley, linux-scsi, linux-kernel, Halil Pasic
  Cc: Martin K . Petersen, FUJITA Tomonori, Kai Mäkisara,
	Doug Gilbert, linux-block, Jens Axboe, oliver.sang,
	Christoph Hellwig

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

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-28  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 13:34 [PATCH] scsi: scsi_ioctl: fix error code propagation in SG_IO Halil Pasic
2021-08-24  3:23 ` Martin K. Petersen
2021-08-28  2:32 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).