patch-2.2.11 linux/drivers/net/lance.c
Next file: linux/drivers/net/mace.c
Previous file: linux/drivers/net/jazzsonic.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Aug 9 12:04:39 1999
- Orig file:
v2.2.10/linux/drivers/net/lance.c
- Orig date:
Mon Dec 28 11:05:14 1998
diff -u --recursive --new-file v2.2.10/linux/drivers/net/lance.c linux/drivers/net/lance.c
@@ -499,6 +499,8 @@
lp = (struct lance_private *)(((unsigned long)kmalloc(sizeof(*lp)+7,
GFP_DMA | GFP_KERNEL)+7) & ~7);
+ if(lp==NULL)
+ return -ENODEV;
if (lance_debug > 6) printk(" (#0x%05lx)", (unsigned long)lp);
memset(lp, 0, sizeof(*lp));
dev->priv = lp;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)