diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-03-14 20:55:51 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-03-14 20:55:51 +0000 |
commit | e1cdb722460ebb83204d31aedac5fc4d7dc8a09a (patch) | |
tree | 2aac956897383d72b6cf2534d1695db782cd8016 | |
parent | 3a1f6a52ea4b127d7c6f98763b3563dc6b4260a4 (diff) | |
download | FreeBSD-src-e1cdb722460ebb83204d31aedac5fc4d7dc8a09a.zip FreeBSD-src-e1cdb722460ebb83204d31aedac5fc4d7dc8a09a.tar.gz |
Properly move the setting of bstp_linkstate_p to the bridgestp module.
-rw-r--r-- | sys/net/bridgestp.c | 1 | ||||
-rw-r--r-- | sys/net/if_bridge.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 7d92b2b..9472149 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -2069,6 +2069,7 @@ bstp_modevent(module_t mod, int type, void *data) bstp_linkstate_p = bstp_linkstate; break; case MOD_UNLOAD: + bstp_linkstate_p = NULL; mtx_destroy(&bstp_list_mtx); break; default: diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index dff6832..f3bf6ac 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -459,7 +459,6 @@ bridge_modevent(module_t mod, int type, void *data) bridge_input_p = bridge_input; bridge_output_p = bridge_output; bridge_dn_p = bridge_dummynet; - bstp_linkstate_p = bstp_linkstate; bridge_detach_cookie = EVENTHANDLER_REGISTER( ifnet_departure_event, bridge_ifdetach, NULL, EVENTHANDLER_PRI_ANY); @@ -472,7 +471,6 @@ bridge_modevent(module_t mod, int type, void *data) bridge_input_p = NULL; bridge_output_p = NULL; bridge_dn_p = NULL; - bstp_linkstate_p = NULL; mtx_destroy(&bridge_list_mtx); break; default: |