patch-2.4.18 linux/drivers/net/wireless/airo_cs.c
Next file: linux/drivers/net/wireless/airport.c
Previous file: linux/drivers/net/wireless/airo.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Mon Jan 14 18:53:53 2002
- Orig file:
linux.orig/drivers/net/wireless/airo_cs.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/net/wireless/airo_cs.c linux/drivers/net/wireless/airo_cs.c
@@ -244,6 +244,11 @@
/* Allocate space for private device-specific data */
local = kmalloc(sizeof(local_info_t), GFP_KERNEL);
+ if (!local) {
+ printk(KERN_ERR "airo_cs: no memory for new device\n");
+ kfree (link);
+ return NULL;
+ }
memset(local, 0, sizeof(local_info_t));
link->priv = local;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)