Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1289a057 authored by Roland Dreier's avatar Roland Dreier Committed by Nicholas Bellinger
Browse files

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: default avatarRoland Dreier <roland@purestorage.com>
Cc: stable@kernel.org
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 9b5cd7f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;