patch-1.3.25 linux/drivers/net/loopback.c
Next file: linux/drivers/net/ni52.c
Previous file: linux/drivers/net/ibmtr.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/loopback.c
- Orig date:
Tue Aug 15 20:39:03 1995
diff -u --recursive --new-file v1.3.24/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -144,6 +144,8 @@
dev->pa_alen = 4;
#endif
dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
+ if (dev->priv == NULL)
+ return -ENOMEM;
memset(dev->priv, 0, sizeof(struct enet_statistics));
dev->get_stats = get_stats;
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this