patch-2.1.88 linux/drivers/net/e2100.c

Next file: linux/drivers/net/eepro100.c
Previous file: linux/drivers/net/dlci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/drivers/net/e2100.c linux/drivers/net/e2100.c
@@ -441,10 +441,10 @@
 		struct device *dev = &dev_e21[this_dev];
 		if (dev->priv != NULL) {
 			/* NB: e21_close() handles free_irq */
+			unregister_netdev(dev);
 			kfree(dev->priv);
 			dev->priv = NULL;
 			release_region(dev->base_addr, E21_IO_EXTENT);
-			unregister_netdev(dev);
 		}
 	}
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov