patch-2.3.49 linux/drivers/pcmcia/cardbus.c

Next file: linux/drivers/pcmcia/cs.c
Previous file: linux/drivers/pci/quirks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/drivers/pcmcia/cardbus.c linux/drivers/pcmcia/cardbus.c
@@ -186,6 +186,9 @@
 
 	DEBUG(3, "cs: read_cb_mem(%d, %#x, %u)\n", space, addr, len);
 
+	if (!s->cb_config)
+		goto fail;
+
 	dev = &s->cb_config[fn].dev;
 
 	/* Config space? */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)