aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2023-07-05 02:40:01 +0000
committerMartin K. Petersen <[email protected]>2023-07-20 03:12:13 +0000
commit80b6051085c5fedcb1dfd7b2562a63a83655c4d8 (patch)
treedb735bdc058d9c0148667b134d31371f3396c1a2 /fs/jbd2/commit.c
parentscsi: storvsc: Handle SRB status value 0x30 (diff)
downloadkernel-80b6051085c5fedcb1dfd7b2562a63a83655c4d8.tar.gz
kernel-80b6051085c5fedcb1dfd7b2562a63a83655c4d8.zip
scsi: sg: Fix checking return value of blk_get_queue()
Commit fcaa174a9c99 ("scsi/sg: don't grab scsi host module reference") make a mess how blk_get_queue() is called, blk_get_queue() returns true on success while the caller expects it returns 0 on success. Fix this problem and also add a corresponding error message on failure. Fixes: fcaa174a9c99 ("scsi/sg: don't grab scsi host module reference") Reported-by: Marc Hartmayer <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Yu Kuai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Shin'ichiro Kawasaki <[email protected]> Tested-by: Marc Hartmayer <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Marc Hartmayer <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions