Files
linux/drivers/scsi
Yu Kuai 80b6051085 scsi: sg: Fix checking return value of blk_get_queue()
Commit fcaa174a9c ("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: fcaa174a9c ("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]>
2023-07-19 23:12:13 -04:00
..
2023-05-31 19:59:26 -04:00
2023-05-31 19:59:26 -04:00
2023-06-28 21:45:27 -04:00
2023-05-31 19:59:26 -04:00
2023-05-31 19:59:26 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-05-26 13:52:19 -07:00
2023-04-18 23:01:23 -04:00
…
2023-05-31 19:59:26 -04:00
…
2022-06-27 22:56:21 -04:00
…
…
…
…
2022-02-22 21:11:02 -05:00
…
2022-05-08 14:28:18 -04:00
…
2021-12-22 23:41:13 -05:00
2023-05-31 11:36:40 -04:00