patch-2.2.17 linux/drivers/net/com90io.c

Next file: linux/drivers/net/comx-hw-comx.c
Previous file: linux/drivers/net/com20020.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/net/com90io.c linux/drivers/net/com90io.c
@@ -1,6 +1,6 @@
 /*	$Id: com90io.c,v 1.6 1997/11/09 11:04:59 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,
@@ -871,8 +871,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)