From 925511b7f1d1bd75005ef54077c24bca4afbf308 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 11 Apr 2003 08:13:52 -0700 Subject: [PATCH] [EBTABLES]: Get rid of brlock in ebtable_broute. --- net/bridge/netfilter/ebtable_broute.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/bridge/netfilter/ebtable_broute.c b/net/bridge/netfilter/ebtable_broute.c index 948eb4bb6fc02..1767c94cd3ded 100644 --- a/net/bridge/netfilter/ebtable_broute.c +++ b/net/bridge/netfilter/ebtable_broute.c @@ -14,7 +14,6 @@ #include #include #include -#include /* EBT_ACCEPT means the frame will be bridged * EBT_DROP means the frame will be routed @@ -70,18 +69,15 @@ static int __init init(void) ret = ebt_register_table(&broute_table); if (ret < 0) return ret; - br_write_lock_bh(BR_NETPROTO_LOCK); /* see br_input.c */ br_should_route_hook = ebt_broute; - br_write_unlock_bh(BR_NETPROTO_LOCK); return ret; } static void __exit fini(void) { - br_write_lock_bh(BR_NETPROTO_LOCK); br_should_route_hook = NULL; - br_write_unlock_bh(BR_NETPROTO_LOCK); + synchronize_net(); ebt_unregister_table(&broute_table); } -- 2.53.0