diff options
author | Roland Dreier <roland@purestorage.com> | 2011-11-22 13:51:34 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-06 06:00:56 +0000 |
commit | 1289a0571c037b4757f60597d646aedb70361ec3 (patch) | |
tree | f06f863821f9b918e2fc6686e874718dae3e1528 /drivers/target | |
parent | 9b5cd7f37e1e018432111333e2a67f78ba41edfe (diff) | |
download | linux-3.10-1289a0571c037b4757f60597d646aedb70361ec3.tar.gz linux-3.10-1289a0571c037b4757f60597d646aedb70361ec3.tar.bz2 linux-3.10-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_cdb.c b/drivers/target/target_core_cdb.c index 8013a5a7bf6..831468b3163 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; |