From 5b99207610b1c6aba7e9bda32ba394aee6a10770 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 17 Dec 2010 14:35:09 +0000 Subject: [PATCH] Fix minor issue when generating INQUIRY responses for not existing LUNs. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3121 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index ca59eeaf4..8d0569fa0 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -950,6 +950,7 @@ go: memset(buf, 0, len); buf[0] = 0x7F; /* Peripheral qualifier 011b, Peripheral device type 1Fh */ + buf[4] = len - 4; TRACE_BUFFER("INQUIRY for not supported LUN set", buf, len);