summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2012-01-13 21:01:34 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2012-01-18 09:30:22 +0100
commit91ec1d3535b2acf12c599045cc19ad9be3c6a47b (patch)
tree12a312b34c2a932832ca02d28c082e86ab7d2813 /Kbuild
parenttarget: Correct sense key for INVALID FIELD IN {PARAMETER LIST,CDB} (diff)
downloadlinux-91ec1d3535b2acf12c599045cc19ad9be3c6a47b.tar.xz
linux-91ec1d3535b2acf12c599045cc19ad9be3c6a47b.zip
target: Add workaround for zero-length control CDB handling
This patch adds a work-around for handling zero allocation length control CDBs (type SCF_SCSI_CONTROL_SG_IO_CDB) that was causing an OOPs with the following raw calls: # sg_raw -v /dev/sdd 3 0 0 0 0 0 # sg_raw -v /dev/sdd 0x1a 0 1 0 0 0 This patch will follow existing zero-length handling for data I/O and silently return with GOOD status. This addresses the zero length issue, but the proper long-term resolution for handling arbitary allocation lengths will be to refactor out data-phase handling in individual CDB emulation logic within target_core_cdb.c Reported-by: Roland Dreier <roland@purestorage.com> Cc: <stable@vger.kernel.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions