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