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:
Tai-hwa Liang 2021-04-10 15:32:27 +00:00
parent 74b123c0a5
commit 34033bc5b9

View File

@ -628,7 +628,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