From: Roland Dreier Date: Tue, 22 Nov 2011 21:51:34 +0000 (-0800) Subject: target: Fix page length in emulated INQUIRY VPD page 86h X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1289a0571c037b4757f60597d646aedb70361ec3;p=linux-beck.git 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 Cc: stable@kernel.org Signed-off-by: Nicholas Bellinger --- 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;