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(-) -- 2.25.4