patch-2.4.7 linux/drivers/pcmcia/rsrc_mgr.c
Next file: linux/drivers/pcmcia/yenta.c
Previous file: linux/drivers/pcmcia/hd64465_ss.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Jul 15 16:22:23 2001
- Orig file:
v2.4.6/linux/drivers/pcmcia/rsrc_mgr.c
- Orig date:
Tue Mar 6 19:28:32 2001
diff -u --recursive --new-file v2.4.6/linux/drivers/pcmcia/rsrc_mgr.c linux/drivers/pcmcia/rsrc_mgr.c
@@ -189,6 +189,10 @@
/* First, what does a floating port look like? */
b = kmalloc(256, GFP_KERNEL);
+ if (!b) {
+ printk(KERN_ERR "do_io_probe: unable to kmalloc 256 bytes");
+ return;
+ }
memset(b, 0, 256);
for (i = base, most = 0; i < base+num; i += 8) {
if (check_io_resource(i, 8))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)