patch-1.3.25 linux/net/core/dev.c
Next file: linux/net/core/iovec.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Sep 7 17:11:48 1995
- Orig file:
v1.3.24/linux/net/core/dev.c
- Orig date:
Sun Sep 3 16:12:49 1995
diff -u --recursive --new-file v1.3.24/linux/net/core/dev.c linux/net/core/dev.c
@@ -37,6 +37,7 @@
* Richard Kooijman : Timestamp fixes.
* Alan Cox : Wrong field in SIOCGIFDSTADDR
* Alan Cox : Device lock protection.
+ * Alan Cox : Fixed nasty side effect of device close changes.
*
* Cleaned up and recommented by Alan Cox 2nd April 1994. I hope to have
* the rest as well commented in the end.
@@ -1024,6 +1025,11 @@
if ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0))
{
+ /*
+ * Restore IFF_UP so dev_close knows to shut
+ * it down. FIXME: Tidy me up sometime.
+ */
+ dev->flags|=IFF_UP;
ret = dev_close(dev);
}
else
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this