patch-1.3.25 linux/drivers/net/3c509.c
Next file: linux/drivers/net/8390.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Sep 7 17:11:47 1995
- Orig file:
v1.3.24/linux/drivers/net/3c509.c
- Orig date:
Tue Aug 15 20:39:02 1995
diff -u --recursive --new-file v1.3.24/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -249,6 +249,8 @@
/* Make up a EL3-specific-data structure. */
dev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
+ if (dev->priv == NULL)
+ return -ENOMEM;
memset(dev->priv, 0, sizeof(struct el3_private));
if (el3_debug > 0)
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this