And another.
This commit is contained in:
@@ -1629,7 +1629,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb)
|
|||||||
if ((cdb[9] & 0xf8) == 0x08) {
|
if ((cdb[9] & 0xf8) == 0x08) {
|
||||||
/* 0x08 is an illegal mode */
|
/* 0x08 is an illegal mode */
|
||||||
scsi_cdrom_invalid_field(dev);
|
scsi_cdrom_invalid_field(dev);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If all the flag bits are cleared, then treat it as a non-data command. */
|
/* If all the flag bits are cleared, then treat it as a non-data command. */
|
||||||
@@ -1637,7 +1637,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb)
|
|||||||
dev->sector_len = 0;
|
dev->sector_len = 0;
|
||||||
else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) {
|
else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) {
|
||||||
scsi_cdrom_invalid_field(dev);
|
scsi_cdrom_invalid_field(dev);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GPCMD_READ_CD_OLD:
|
case GPCMD_READ_CD_OLD:
|
||||||
@@ -1651,7 +1651,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb)
|
|||||||
if ((cdb[9] & 0xf8) == 0x08) {
|
if ((cdb[9] & 0xf8) == 0x08) {
|
||||||
/* 0x08 is an illegal mode */
|
/* 0x08 is an illegal mode */
|
||||||
scsi_cdrom_invalid_field(dev);
|
scsi_cdrom_invalid_field(dev);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If all the flag bits are cleared, then treat it as a non-data command. */
|
/* If all the flag bits are cleared, then treat it as a non-data command. */
|
||||||
@@ -1659,7 +1659,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb)
|
|||||||
dev->sector_len = 0;
|
dev->sector_len = 0;
|
||||||
else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) {
|
else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) {
|
||||||
scsi_cdrom_invalid_field(dev);
|
scsi_cdrom_invalid_field(dev);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user