patch-2.0.34 linux/drivers/net/sk_g16.c
Next file: linux/drivers/net/smc-ultra.c
Previous file: linux/drivers/net/sdla.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Jun 3 15:17:47 1998
- Orig file:
v2.0.33/linux/drivers/net/sk_g16.c
- Orig date:
Mon May 6 02:26:09 1996
diff -u --recursive --new-file v2.0.33/linux/drivers/net/sk_g16.c linux/drivers/net/sk_g16.c
@@ -778,16 +778,16 @@
dev->dev_addr[4],
dev->dev_addr[5]);
- /* Grab the I/O Port region */
- request_region(ioaddr, ETHERCARD_TOTAL_SIZE,"sk_g16");
-
- /* Initialize device structure */
-
/* Allocate memory for private structure */
p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
- if (p == NULL)
+ if (p == NULL) {
+ printk("%s: ERROR - no memory for driver data!\n", dev->name);
return -ENOMEM;
+ }
memset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
+
+ /* Grab the I/O Port region */
+ request_region(ioaddr, ETHERCARD_TOTAL_SIZE,"sk_g16");
/* Assign our Device Driver functions */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov