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

Next file: linux/drivers/net/x25_asy.c
Previous file: linux/drivers/net/smc-ultra.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/drivers/net/wd.c linux/drivers/net/wd.c
@@ -497,11 +497,11 @@
 		struct device *dev = &dev_wd[this_dev];
 		if (dev->priv != NULL) {
 			int ioaddr = dev->base_addr - WD_NIC_OFFSET;
+			unregister_netdev(dev);
 			kfree(dev->priv);
 			dev->priv = NULL;
 			free_irq(dev->irq, dev);
 			release_region(ioaddr, WD_IO_EXTENT);
-			unregister_netdev(dev);
 		}
 	}
 }

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