From 1c27e6c39f40e8c314e4699549eebb97caef6819 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Tue, 12 May 2015 03:35:45 +0000 Subject: [PATCH] Fix a panic when VIMAGE is enabled. Spotted by: Nikos Vassiliadis --- sys/net/if_bridge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 753854d069f7..faa7681d8878 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -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(); } /*