patch-1.3.25 linux/drivers/net/seeq8005.c
Next file: linux/drivers/net/sk_g16.c
Previous file: linux/drivers/net/plip.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Sep 7 17:11:48 1995
- Orig file:
v1.3.24/linux/drivers/net/seeq8005.c
- Orig date:
Wed Aug 2 13:21:05 1995
diff -u --recursive --new-file v1.3.24/linux/drivers/net/seeq8005.c linux/drivers/net/seeq8005.c
@@ -323,8 +323,9 @@
request_region(ioaddr, SEEQ8005_IO_EXTENT,"seeq8005");
/* Initialize the device structure. */
+ dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
if (dev->priv == NULL)
- dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
+ return -ENOMEM;
memset(dev->priv, 0, sizeof(struct net_local));
dev->open = seeq8005_open;
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this