From 5ba07d5c81af64d42937a4027ea7c930bdd8bf9e Mon Sep 17 00:00:00 2001 From: "bdschuym@pandora.be" Date: Mon, 14 Mar 2005 21:22:31 -0800 Subject: [PATCH] [PATCH] Fix smp race. The patch below fixes an smp race that happens on such systems under heavy load. This bug was reported and solved by Steve Herrell Signed-off-by: Bart De Schuymer Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- net/bridge/netfilter/ebtables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 33dde2be31ba3..771105c927be4 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -179,9 +179,10 @@ unsigned int ebt_do_table (unsigned int hook, struct sk_buff **pskb, struct ebt_chainstack *cs; struct ebt_entries *chaininfo; char *base; - struct ebt_table_info *private = table->private; + struct ebt_table_info *private; read_lock_bh(&table->lock); + private = table->private; cb_base = COUNTER_BASE(private->counters, private->nentries, smp_processor_id()); if (private->chainstack) -- 2.47.2