isapnp: Check if a card has a valid ROM before allowing it to be isolated

This commit is contained in:
RichardG867
2022-02-17 16:44:49 -03:00
parent 10875e7c7c
commit 7696eea94e

View File

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