summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2011-11-22 22:51:34 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2011-12-06 07:00:56 +0100
commit1289a0571c037b4757f60597d646aedb70361ec3 (patch)
treef06f863821f9b918e2fc6686e874718dae3e1528 /drivers/target
parenttarget: Handle 0 correctly in transport_get_sectors_6() (diff)
downloadlinux-1289a0571c037b4757f60597d646aedb70361ec3.tar.xz
linux-1289a0571c037b4757f60597d646aedb70361ec3.zip
target: Fix page length in emulated INQUIRY VPD page 86h
The LSB of the page length is at offset 3, not 2. Signed-off-by: Roland Dreier <roland@purestorage.com> Cc: stable@kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_cdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_cdb.c b/drivers/target/target_core_cdb.c
index 8013a5a7bf64..831468b3163d 100644
--- a/drivers/target/target_core_cdb.c
+++ b/drivers/target/target_core_cdb.c
@@ -478,7 +478,7 @@ target_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf)
if (cmd->data_length < 60)
return 0;
- buf[2] = 0x3c;
+ buf[3] = 0x3c;
/* Set HEADSUP, ORDSUP, SIMPSUP */
buf[5] = 0x07;