projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5cd7f
)
target: Fix page length in emulated INQUIRY VPD page 86h
author
Roland Dreier
<roland@purestorage.com>
Tue, 22 Nov 2011 21:51:34 +0000
(13:51 -0800)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Tue, 6 Dec 2011 06:00:56 +0000
(06:00 +0000)
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>
drivers/target/target_core_cdb.c
patch
|
blob
|
history
diff --git
a/drivers/target/target_core_cdb.c
b/drivers/target/target_core_cdb.c
index
8013a5a
..
831468b
100644
(file)
--- 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;