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

Submitted by Frediano Ziglio on Aug. 9, 2019, 2:26 p.m.

Details

Message ID 20190809142651.2967-22-fziglio@redhat.com
State Superseded
Headers show
Series "CD emulation follow ups" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 9, 2019, 2:26 p.m.
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(-)

Patch hide | download patch | download mbox

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];