ChangeSet 1.2009.16.2, 2005/03/14 21:22:31-08:00, [EMAIL PROTECTED]
[EBTABLES]: 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
<[EMAIL PROTECTED]>
Signed-off-by: Bart De Schuymer <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
ebtables.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
--- a/net/bridge/netfilter/ebtables.c 2005-03-15 00:07:22 -08:00
+++ b/net/bridge/netfilter/ebtables.c 2005-03-15 00:07:22 -08:00
@@ -179,9 +179,10 @@
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)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html