Do not try to grab the NET_LOCK() while holding an ifp reference.
authormpi <mpi@openbsd.org>
Mon, 29 May 2017 06:08:21 +0000 (06:08 +0000)
committermpi <mpi@openbsd.org>
Mon, 29 May 2017 06:08:21 +0000 (06:08 +0000)
commitc683151962301f5e3ddfb765ea1fc011e415e08c
tree5305faf5b6a4572b18c6b6ff0a4a1331c5a2976a
parent0180700becabee181a605924110bea5621c6f4b7
Do not try to grab the NET_LOCK() while holding an ifp reference.

Fix a deadlock with a thread trying to detach the corresponding interface.

ok sashan@, bluhm@
sys/net/if.c