Added a missing sanity check to device/isapnp.c, fixes crash with ISA PnP sound cards on the PB520R.

This commit is contained in:
OBattler
2023-12-18 22:33:15 +01:00
parent a83486ea32
commit 46c5f9c0cc

View File

@@ -124,7 +124,7 @@ static void
isapnp_device_config_changed(isapnp_card_t *card, isapnp_device_t *ld)
{
/* Ignore card if it hasn't signed up for configuration changes. */
if (!card->config_changed)
if ((card == NULL) || !card->config_changed)
return;
/* Populate config structure, performing endianness conversion as needed. */