Add missing NULL check to CS423x game port.

This commit is contained in:
RichardG867
2021-06-03 01:16:18 -03:00
parent ce7db25d7c
commit ea3d844826

View File

@@ -618,7 +618,8 @@ cs423x_pnp_config_changed(uint8_t ld, isapnp_device_config_t *config, void *priv
break;
case 1: /* Game Port */
gameport_remap(dev->gameport, (config->activate && (config->io[0].base != ISAPNP_IO_DISABLED)) ? config->io[0].base : 0);
if (dev->gameport)
gameport_remap(dev->gameport, (config->activate && (config->io[0].base != ISAPNP_IO_DISABLED)) ? config->io[0].base : 0);
break;
case 2: /* Control Registers */