From 4d577843de3cc6c90ac605894879ab3e99eb46d6 Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Sun, 30 Nov 2025 12:52:05 -0600 Subject: [PATCH] ISAPnP: Ensure isolated_card is set when card is put into isolation state --- src/device/isapnp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device/isapnp.c b/src/device/isapnp.c index 561367003..b21ce4774 100644 --- a/src/device/isapnp.c +++ b/src/device/isapnp.c @@ -576,6 +576,10 @@ isapnp_write_common(isapnp_t *dev, isapnp_card_t *card, isapnp_device_t *ld, uin card->id_checksum = isapnp_init_key[0]; if (card->state == PNP_STATE_SLEEP) { card->state = (val == 0) ? PNP_STATE_ISOLATION : PNP_STATE_CONFIG; + if (card->state == PNP_STATE_ISOLATION) { + isapnp_log("ISAPnP: Putting card in isolation\n"); + dev->isolated_card = card; + } if (!card->multiple_lds) { ld = card->first_ld;