patch-2.3.37 linux/drivers/net/pcmcia/tulip_cb.c

Next file: linux/drivers/parport/parport_pc.c
Previous file: linux/drivers/net/pcmcia/ray_cs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.36/linux/drivers/net/pcmcia/tulip_cb.c linux/drivers/net/pcmcia/tulip_cb.c
@@ -3324,10 +3324,10 @@
 	if (*devp) {
 		struct net_device *dev = *devp;
 		struct tulip_private *tp = dev->priv;
+		*devp = *next;
 		unregister_netdev(dev);
 		kfree(dev);
 		kfree(tp);
-		*devp = *next;
 		kfree(node);
 		MOD_DEC_USE_COUNT;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)