[stgt] [PATCH] ssc: fix the information field in sense

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sat Nov 22 18:14:06 CET 2008


I've just merged the following fix.

=
From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Subject: [PATCH] ssc: fix the information field in sense

The information field starts in the third byte.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/bs_ssc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index 07314e9..0b9fedb 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -47,7 +47,7 @@ static void ssc_sense_data_build(struct scsi_cmd *cmd, uint8_t key,
 
 	sense_data_build(cmd, key, asc);
 	if (info_len) {
-		memcpy(cmd->sense_buffer + 2, info, 4);
+		memcpy(cmd->sense_buffer + 3, info, 4);
 		cmd->sense_buffer[0] |= 0x80;
 	}
 }
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list