From bf8227dd6c98ee57f4e472ed904a9d86830b1ac2 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 10 Jan 2022 20:41:43 +0100 Subject: [PATCH] And another. --- src/scsi/scsi_cdrom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scsi/scsi_cdrom.c b/src/scsi/scsi_cdrom.c index 842b8cc28..8a443dd77 100644 --- a/src/scsi/scsi_cdrom.c +++ b/src/scsi/scsi_cdrom.c @@ -1629,7 +1629,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb) if ((cdb[9] & 0xf8) == 0x08) { /* 0x08 is an illegal mode */ scsi_cdrom_invalid_field(dev); - break; + return; } /* 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; else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) { scsi_cdrom_invalid_field(dev); - break; + return; } break; case GPCMD_READ_CD_OLD: @@ -1651,7 +1651,7 @@ scsi_cdrom_command(scsi_common_t *sc, uint8_t *cdb) if ((cdb[9] & 0xf8) == 0x08) { /* 0x08 is an illegal mode */ scsi_cdrom_invalid_field(dev); - break; + return; } /* 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; else if ((cdb[9] == 0x00) && ((cdb[10] & 0x07) != 0x00)) { scsi_cdrom_invalid_field(dev); - break; + return; } break; }