patch-2.3.47 linux/drivers/net/wan/dlci.c

Next file: linux/drivers/net/wan/lapbether.c
Previous file: linux/drivers/net/wan/cycx_x25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/wan/dlci.c linux/drivers/net/wan/dlci.c
@@ -361,7 +361,7 @@
 	if (!*(short *)(dev->dev_addr))
 		return(-EINVAL);
 
-	if (!test_bit(LINK_STATE_START, &dlp->slave->state))
+	if (!netif_running(dlp->slave))
 		return(-ENOTCONN);
 
 	flp = dlp->slave->priv;
@@ -495,7 +495,7 @@
 	if (!master)
 		return(-ENODEV);
 
-	if (test_bit(LINK_STATE_START, &master->state))
+	if (netif_running(master))
 		return(-EBUSY);
 
 	dlp = master->priv;

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