mbox series

[0/3] scsi: check the whole result in some places

Message ID 20210319030128.1345061-1-yanaijie@huawei.com (mailing list archive)
Headers show
Series scsi: check the whole result in some places | expand

Message

Jason Yan March 19, 2021, 3:01 a.m. UTC
Some bugs have been found related to the result of the command been
returned by the driver or the middle layer in some cases. Such as in
scsi_queue_rq() when the device is offline only the host byte is set.

Jason Yan (3):
  scsi: check the whole result for reading write protect flag
  scsi: only copy data to user when the whole result is good
  scsi: switch to use scsi_result_is_good() in
    scsi_result_to_blk_status()

 block/scsi_ioctl.c      |  2 +-
 drivers/scsi/scsi_lib.c |  2 +-
 drivers/scsi/sd.c       |  6 +++---
 include/scsi/scsi.h     | 13 +++++++++++++
 4 files changed, 18 insertions(+), 5 deletions(-)