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
- Lines: 10
- Date:
Wed Mar 1 15:30:07 2000
- Orig file:
v2.3.48/linux/drivers/pcmcia/cardbus.c
- Orig date:
Fri Jan 21 18:19:16 2000
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)