And another.

This commit is contained in:
OBattler
2022-01-10 20:41:43 +01:00
parent e0578fbf5b
commit bf8227dd6c

View File

@@ -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;
} }