diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-01-29 14:10:01 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-01-29 14:24:20 -0800 |
commit | cab9609b449ae5a6875d7d4cef32a814527a3baa (patch) | |
tree | c07eb1b9d9b5758e300177de0faae75dff7e5304 /drivers/misc/carma/carma-fpga-program.c | |
parent | 49df9fc9b9fd41e5749c5a9be2d2076328f75fc7 (diff) |
target: Fix zero-length MODE_SENSE regression
This patch fixes a regression introduced in v3.8-rc1 code where
a zero-length MODE_SENSE was no longer returning GOOD status, but
instead returning TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE to generate
a CHECK_CONDITION status.
This regression was introduced with the following commit:
commit de103c93aff0bed0ae984274e5dc8b95899badab
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Nov 6 12:24:09 2012 -0800
target: pass sense_reason as a return value
and this patch has been tested with the following zero-length CDB:
sg_raw /dev/sdd 5a 00 0a 00 00 00 00 00 00 00
SCSI Status: Good
Sense Information:
sense buffer empty
Cc: Christoph Hellwig <hch@lst.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/misc/carma/carma-fpga-program.c')
0 files changed, 0 insertions, 0 deletions