freebsd_network: Add missing LOCKGIANT to the close() hook.
Should fix #18363.
This commit is contained in:
parent
81d3bc02bf
commit
97d55ad49d
@ -84,6 +84,7 @@ compat_close(void *cookie)
|
||||
struct ifnet *ifp = cookie;
|
||||
|
||||
if_printf(ifp, "compat_close()\n");
|
||||
IFF_LOCKGIANT(ifp);
|
||||
|
||||
atomic_or(&ifp->flags, DEVICE_CLOSED);
|
||||
|
||||
@ -91,6 +92,7 @@ compat_close(void *cookie)
|
||||
|
||||
release_sem_etc(ifp->receive_sem, 1, B_RELEASE_ALL);
|
||||
|
||||
IFF_UNLOCKGIANT(ifp);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user