freebsd_network: Add missing LOCKGIANT to the close() hook.

Should fix #18363.
This commit is contained in:
Augustin Cavalier 2023-04-17 21:51:29 -04:00
parent 81d3bc02bf
commit 97d55ad49d

View File

@ -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;
}