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

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

diff -u --recursive --new-file v2.1.87/linux/drivers/net/ni65.c linux/drivers/net/ni65.c
@@ -1202,10 +1202,10 @@
 	}
 	disable_dma(dev_ni65.dma);
 	free_dma(dev_ni65.dma);
+	unregister_netdev(&dev_ni65);
 	release_region(dev_ni65.base_addr,cards[p->cardno].total_size);
 	ni65_free_buffer(p);
 	dev_ni65.priv = NULL;
-	unregister_netdev(&dev_ni65);
 }
 #endif /* MODULE */
 

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