Reopening FreeBSD's compat devices was broken due to a missing flag
clear. Patch part of #7040. Thanks.
This commit is contained in:
committed by
Philippe Houdoin
parent
6576e6c774
commit
fcc745e0e7
@@ -60,6 +60,7 @@ compat_open(const char *name, uint32 flags, void **cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ifp->if_flags |= IFF_UP;
|
ifp->if_flags |= IFF_UP;
|
||||||
|
ifp->flags &= ~DEVICE_CLOSED;
|
||||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||||
|
|
||||||
*cookie = ifp;
|
*cookie = ifp;
|
||||||
|
|||||||
Reference in New Issue
Block a user