In DIAGNOSTIC block of if_delmulti_ifma_flags() enter the network epoch.

This quickly plugs the regression from r353292. The locking of multicast
definitely needs a broader review today...

Reported by:	pho, dhw
This commit is contained in:
Gleb Smirnoff 2019-10-08 16:45:56 +00:00
parent 8f52459857
commit e9dc46cc30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353312

View File

@ -3689,13 +3689,14 @@ if_delmulti_ifma_flags(struct ifmultiaddr *ifma, int flags)
if (ifp == NULL) {
printf("%s: ifma_ifp seems to be detached\n", __func__);
} else {
struct epoch_tracker et;
struct ifnet *oifp;
NET_EPOCH_ASSERT();
NET_EPOCH_ENTER(et);
CK_STAILQ_FOREACH(oifp, &V_ifnet, if_link)
if (ifp == oifp)
break;
NET_EPOCH_EXIT(et);
if (ifp != oifp)
ifp = NULL;
}