mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Set ifp->if_afdata_initialized to 0 while holding IF_AFDATA_LOCK on ifp,
not after the lock has been released. Reviewed by: bz Discussed with: rwatson
This commit is contained in:
parent
e2da1d0e79
commit
67da1f3d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -1022,8 +1022,8 @@ if_detach_internal(struct ifnet *ifp, int vmove)
|
|||
(*dp->dom_ifdetach)(ifp,
|
||||
ifp->if_afdata[dp->dom_family]);
|
||||
}
|
||||
IF_AFDATA_UNLOCK(ifp);
|
||||
ifp->if_afdata_initialized = 0;
|
||||
IF_AFDATA_UNLOCK(ifp);
|
||||
|
||||
if (!vmove)
|
||||
ifq_detach(&ifp->if_snd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue