patch-2.2.3 linux/drivers/net/a2065.c
Next file: linux/drivers/net/ariadne.c
Previous file: linux/drivers/net/Makefile
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Feb 25 10:02:13 1999
- Orig file:
v2.2.2/linux/drivers/net/a2065.c
- Orig date:
Mon Oct 5 13:13:39 1998
diff -u --recursive --new-file v2.2.2/linux/drivers/net/a2065.c linux/drivers/net/a2065.c
@@ -767,6 +767,8 @@
dev->priv = kmalloc(sizeof(struct
lance_private),
GFP_KERNEL);
+ if (dev->priv == NULL)
+ return -ENOMEM;
priv = (struct lance_private *)dev->priv;
memset(priv, 0, sizeof(struct lance_private));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)