From 7696eea94eba9997d5644822732613a663a09fc3 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 17 Feb 2022 16:44:49 -0300 Subject: [PATCH] isapnp: Check if a card has a valid ROM before allowing it to be isolated --- src/device/isapnp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/isapnp.c b/src/device/isapnp.c index 2b75969ce..18b11ba3d 100644 --- a/src/device/isapnp.c +++ b/src/device/isapnp.c @@ -268,7 +268,7 @@ isapnp_read_data(uint16_t addr, void *priv) case 0x01: /* Serial Isolation */ card = dev->first_card; while (card) { - if (card->enable && (card->state == PNP_STATE_ISOLATION)) + if (card->enable && card->rom && (card->state == PNP_STATE_ISOLATION)) break; card = card->next; }