patch-1.3.25 linux/drivers/net/eepro.c
Next file: linux/drivers/net/eexpress.c
Previous file: linux/drivers/net/dummy.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/eepro.c
- Orig date:
Tue Aug 15 20:39:03 1995
diff -u --recursive --new-file v1.3.24/linux/drivers/net/eepro.c linux/drivers/net/eepro.c
@@ -407,8 +407,9 @@
request_region(ioaddr, EEPRO_IO_EXTENT, "eepro");
/* Initialize the device structure */
+ dev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
if (dev->priv == NULL)
- dev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
+ return -ENOMEM;
memset(dev->priv, 0, sizeof(struct eepro_local));
dev->open = eepro_open;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this