mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
if_firewire: fixing panic upon packet reception for VNET build
netisr_dispatch_src() needs valid VNET pointer or firewire_input() will panic
when receiving a packet.
Reviewed by: glebius
MFC after: 2 weeks
(cherry picked from commit d9b61e7153)
This commit is contained in:
parent
bbe0f3fbc6
commit
89ed20a9b6
1 changed files with 2 additions and 0 deletions
|
|
@ -634,7 +634,9 @@ firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src)
|
|||
}
|
||||
|
||||
M_SETFIB(m, ifp->if_fib);
|
||||
CURVNET_SET_QUIET(ifp->if_vnet);
|
||||
netisr_dispatch(isr, m);
|
||||
CURVNET_RESTORE();
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue