patch-2.3.40 linux/drivers/net/smc-ultra.c
Next file: linux/drivers/net/tokenring/ibmtr.c
Previous file: linux/drivers/net/shaper.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Jan 20 10:44:46 2000
- Orig file:
v2.3.39/linux/drivers/net/smc-ultra.c
- Orig date:
Mon Nov 1 13:56:26 1999
diff -u --recursive --new-file v2.3.39/linux/drivers/net/smc-ultra.c linux/drivers/net/smc-ultra.c
@@ -480,14 +480,14 @@
for (this_dev = 0; this_dev < MAX_ULTRA_CARDS; this_dev++) {
struct net_device *dev = &dev_ultra[this_dev];
if (dev->priv != NULL) {
- /* NB: ultra_close_card() does free_irq + irq2dev */
+ /* NB: ultra_close_card() does free_irq */
int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET;
- kfree(dev->priv);
- release_region(ioaddr, ULTRA_IO_EXTENT);
unregister_netdev(dev);
- dev->priv = NULL;
+ release_region(ioaddr, ULTRA_IO_EXTENT);
+ kfree(dev->priv);
}
}
+ unlock_8390_module();
}
#endif /* MODULE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)