Fixed potential SCSI ID overruns in the SCSI hard diks, CD-ROM, and Iomega ZIP codes.

This commit is contained in:
OBattler
2020-01-15 00:49:42 +01:00
parent 34bf074e8d
commit 2b94cd2b96
3 changed files with 3 additions and 3 deletions

View File

@@ -2545,7 +2545,7 @@ scsi_cdrom_drive_reset(int c)
ide_t *id;
/* Make sure to ignore any SCSI CD-ROM drive that has an out of range ID. */
if ((drv->bus_type == CDROM_BUS_SCSI) && (drv->scsi_device_id > SCSI_ID_MAX))
if ((drv->bus_type == CDROM_BUS_SCSI) && (drv->scsi_device_id >= SCSI_ID_MAX))
return;
/* Make sure to ignore any ATAPI CD-ROM drive that has an out of range IDE channel. */