From c8de20625191ffea5832c6c11d867d591c9e0d0e Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 22 Mar 2021 21:45:58 -0300 Subject: [PATCH] Skip adding the AHA-1542CP to ISAPnP if the microcode is missing --- src/scsi/scsi_aha154x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scsi/scsi_aha154x.c b/src/scsi/scsi_aha154x.c index c50881b5c..17498735a 100644 --- a/src/scsi/scsi_aha154x.c +++ b/src/scsi/scsi_aha154x.c @@ -1089,7 +1089,8 @@ aha_init(const device_t *info) dev->cmd_33_offset = 0x7000; /* offset of the SCSISelect code expansion routine in the microcode ROM */ aha_setmcode(dev); - isapnp_add_card(aha1542cp_pnp_rom, dev->pnp_len + 7, aha_pnp_config_changed, NULL, NULL, NULL, dev); + if (aha1542cp_pnp_rom) + isapnp_add_card(aha1542cp_pnp_rom, dev->pnp_len + 7, aha_pnp_config_changed, NULL, NULL, NULL, dev); #ifdef AHA1542CP_FDC dev->fdc = device_add(&fdc_at_device); #endif