patch-2.2.17 linux/drivers/net/com20020.c
Next file: linux/drivers/net/com90io.c
Previous file: linux/drivers/net/c101.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Sep 4 18:39:19 2000
- Orig file:
v2.2.16/drivers/net/com20020.c
- Orig date:
Mon Sep 4 18:37:25 2000
diff -u --recursive --new-file v2.2.16/drivers/net/com20020.c linux/drivers/net/com20020.c
@@ -1,6 +1,6 @@
/* $Id: com20020.c,v 1.6 1997/11/09 11:04:58 mj Exp $
- Written 1997 by David Woodhouse <dwmw2@cam.ac.uk>
+ Written 1997 by David Woodhouse <dwmw2@infradead.org>
Derived from the original arcnet.c,
Written 1994-1996 by Avery Pennarun,
@@ -995,8 +995,11 @@
if (dev->irq==2) dev->irq=9;
- if (register_netdev(dev) != 0)
+ if (register_netdev(dev) != 0) {
+ kfree(dev->name);
+ kfree(dev);
return -EIO;
+ }
/* Increase use count of arcnet.o */
arcnet_use_count(1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)