aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJaesoo Lee <[email protected]>2019-04-10 00:02:22 +0000
committerMartin K. Petersen <[email protected]>2019-04-16 02:35:20 +0000
commitbe549d49115422f846b6d96ee8fd7173a5f7ceb0 (patch)
treead5b525675171e31510bf6755f7712c2b17ca64a /scripts/gcc-plugins/cyc_complexity_plugin.c
parentscsi: csiostor: fix missing data copy in csio_scsi_err_handler() (diff)
downloadkernel-be549d49115422f846b6d96ee8fd7173a5f7ceb0.tar.gz
kernel-be549d49115422f846b6d96ee8fd7173a5f7ceb0.zip
scsi: core: set result when the command cannot be dispatched
When SCSI blk-mq is enabled, there is a bug in handling errors in scsi_queue_rq. Specifically, the bug is not setting result field of scsi_request correctly when the dispatch of the command has been failed. Since the upper layer code including the sg_io ioctl expects to receive any error status from result field of scsi_request, the error is silently ignored and this could cause data corruptions for some applications. Fixes: d285203cf647 ("scsi: add support for a blk-mq based I/O path.") Cc: <[email protected]> Signed-off-by: Jaesoo Lee <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions