patch-2.4.22 linux-2.4.22/drivers/net/apne.c

Next file: linux-2.4.22/drivers/net/arcnet/arcnet.c
Previous file: linux-2.4.22/drivers/net/amd8111e.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/net/apne.c linux-2.4.22/drivers/net/apne.c
@@ -285,6 +285,7 @@
     /* Allocate dev->priv and fill in 8390 specific dev fields. */
     if (ethdev_init(dev)) {
 	printk (" unable to get memory for dev->priv.\n");
+	free_irq(IRQ_AMIGA_PORTS, dev);
 	return -ENOMEM;
     }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)