Fix a panic when VIMAGE is enabled.
Spotted by: Nikos Vassiliadis
This commit is contained in:
parent
59333867ff
commit
1c27e6c39f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282806
@ -3065,9 +3065,11 @@ bridge_state_change(struct ifnet *ifp, int state)
|
||||
"discarding"
|
||||
};
|
||||
|
||||
CURVNET_SET(ifp->if_vnet);
|
||||
if (V_log_stp)
|
||||
log(LOG_NOTICE, "%s: state changed to %s on %s\n",
|
||||
sc->sc_ifp->if_xname, stpstates[state], ifp->if_xname);
|
||||
CURVNET_RESTORE();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user