Hannes Reinecke 21eccf304b scsi: scsi_ioctl: Return error code when blk_rq_map_kern() fails
The callers of sg_scsi_ioctl() already check for negative return values, so
we can drop the usage of DRIVER_ERROR and return the error from
blk_rq_map_kern() instead.

Link: https://lore.kernel.org/r/20210427083046.31620-3-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-05-31 22:48:20 -04:00
..
2021-04-28 14:27:12 -07:00
2021-05-08 21:49:48 -06:00
2021-04-28 14:27:12 -07:00
2021-04-28 17:22:10 -07:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2021-04-28 17:22:10 -07:00
2021-05-09 13:25:14 -07:00
2020-05-29 16:30:39 -06:00
2021-04-08 10:24:36 -06:00
2020-09-23 09:18:13 -06:00
2021-04-08 10:24:36 -06:00
2020-01-06 20:59:04 -07:00