[Spice-devel] [PATCH spice-gtk v2 21/33] fixup! usb-redir: add files for SCSI and USB MSC implementation

Frediano Ziglio fziglio at redhat.com
Fri Aug 9 14:26:39 UTC 2019


sub_page field in MODE SENSE 10 command is 8 bit, not 4.
---
 src/cd-scsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cd-scsi.c b/src/cd-scsi.c
index 3c1f0b3e..d623d665 100644
--- a/src/cd-scsi.c
+++ b/src/cd-scsi.c
@@ -1443,7 +1443,7 @@ static void cd_scsi_cmd_mode_sense_10(CdScsiLU *dev, CdScsiRequest *req)
     dbd = (req->cdb[1] >> 3) & 0x1;
     page = req->cdb[2] & 0x3f;
     pc = req->cdb[2] >> 6;
-    sub_page = req->cdb[3] & 0xf;
+    sub_page = req->cdb[3];
 
     req->req_len = (req->cdb[7] << 8) | req->cdb[8];
 
-- 
2.20.1



More information about the Spice-devel mailing list