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 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel