Quickly fix up r353683: enter the epoch before calling into netisr_dispatch().

This commit is contained in:
Gleb Smirnoff 2019-10-17 17:02:50 +00:00
parent b1460baa73
commit c0ebee428e

View File

@ -2174,6 +2174,7 @@ igmp_slowtimo_vnet(void)
static int
igmp_v1v2_queue_report(struct in_multi *inm, const int type)
{
struct epoch_tracker et;
struct ifnet *ifp;
struct igmp *igmp;
struct ip *ip;
@ -2223,7 +2224,9 @@ igmp_v1v2_queue_report(struct in_multi *inm, const int type)
m->m_flags |= M_IGMP_LOOP;
CTR2(KTR_IGMPV3, "%s: netisr_dispatch(NETISR_IGMP, %p)", __func__, m);
NET_EPOCH_ENTER(et);
netisr_dispatch(NETISR_IGMP, m);
NET_EPOCH_EXIT(et);
return (0);
}