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

Next file: linux/drivers/net/hp-plus.c
Previous file: linux/drivers/net/es3210.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/drivers/net/ewrk3.c linux/drivers/net/ewrk3.c
@@ -1904,13 +1904,13 @@
 
 void cleanup_module(void)
 {
+	unregister_netdev(&thisEthwrk);
 	if (thisEthwrk.priv) {
 		kfree(thisEthwrk.priv);
 		thisEthwrk.priv = NULL;
 	}
 	thisEthwrk.irq = 0;
 
-	unregister_netdev(&thisEthwrk);
 	release_region(thisEthwrk.base_addr, EWRK3_TOTAL_SIZE);
 }
 #endif				/* MODULE */

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