patch-2.3.47 linux/net/wanrouter/wanmain.c

Next file: linux/scripts/Configure
Previous file: linux/net/sysctl_net.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/net/wanrouter/wanmain.c linux/net/wanrouter/wanmain.c
@@ -701,7 +701,7 @@
 	if (dev == NULL)
 		return -ENODEV;	/* interface not found */
 
-	if (test_bit(LINK_STATE_START, &dev->state)) {
+	if (netif_running(dev)) {
 		if (force) {
 			printk(KERN_WARNING
 				"%s: deleting opened interface %s!\n",

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