mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
[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 <steve_herrell@yahoo.ca> Signed-off-by: Bart De Schuymer <bdschuym@pandora.be> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Chris Wright <chrisw@osdl.org>
This commit is contained in:
parent
973ed0feb6
commit
5ba07d5c81
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue