diff options
author | Roland Dreier <roland@purestorage.com> | 2011-11-22 21:51:34 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-06 06:00:56 (GMT) |
commit | 1289a0571c037b4757f60597d646aedb70361ec3 (patch) | |
tree | f06f863821f9b918e2fc6686e874718dae3e1528 /drivers | |
parent | 9b5cd7f37e1e018432111333e2a67f78ba41edfe (diff) | |
download | linux-fsl-qoriq-1289a0571c037b4757f60597d646aedb70361ec3.tar.xz |
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')
-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 8013a5a..831468b 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; |