mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Properly restore curvnet context when returning early from
ether_input_internal(). This change only affects options VIMAGE kernel builds. PR: kern/165643 Submitted by: Vijay Singh MFC after: 3 days
This commit is contained in:
parent
c225ad032d
commit
2db13e7575
1 changed files with 4 additions and 1 deletions
|
|
@ -661,8 +661,10 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m)
|
|||
m = (*lagg_input_p)(ifp, m);
|
||||
if (m != NULL)
|
||||
ifp = m->m_pkthdr.rcvif;
|
||||
else
|
||||
else {
|
||||
CURVNET_RESTORE();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -681,6 +683,7 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m)
|
|||
#endif
|
||||
ifp->if_ierrors++;
|
||||
m_freem(m);
|
||||
CURVNET_RESTORE();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue