summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_erl1.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2012-11-01 18:43:03 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2012-11-06 20:55:46 -0800
commitfecae40abb1ae9218bdbaa8b8e30bfb5ae43f522 (patch)
tree3f804933534a773ff86664a81352ecf5bd4df868 /drivers/target/iscsi/iscsi_target_erl1.c
parent3a3c5e4a672c5cd61cbdcedcd027312577f9ab7c (diff)
downloadop-kernel-dev-fecae40abb1ae9218bdbaa8b8e30bfb5ae43f522.zip
op-kernel-dev-fecae40abb1ae9218bdbaa8b8e30bfb5ae43f522.tar.gz
target: Fix incorrect starting offset after MODE_SENSE refactoring
This patch fixes a new off-by-one bug in the hardcoded starting offset of spc_emulate_modesense() code that causes BLOCK DESCRIPTOR to be incorrectly written within the MEDIUM TYPE buffer area of the mode parameter header. According to spc4r30, Section 7.5.4, BLOCK DESCRIPTOR for MODE_SENSE_10 starts at byte 3, and BLOCK_DESCRIPTOR for MODE_SENSE (6) starts at byte 2. (roland: add MODE DATA LENGTH + MEDIUM TYPE offset comment) Cc: Roland Dreier <roland@purestorage.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_erl1.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud