diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-06-25 16:49:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-26 02:54:32 -0400 |
commit | 29cb99de4dafc53f75389bbe0173af4385a2ed1d (patch) | |
tree | 75b72390d597e9da159e4f9cd94b90a560e0854e /net/batman-adv | |
parent | 1f129fefd35842bcd450db02b6c63f958384b1b3 (diff) |
batman-adv: fix global TT entry deletion
During the last merge involving translation-table.c something went wrong and two
lines disappeared from translation-table.c. This patch recovers them.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index e4f27a872c9c..c673b58f3ee1 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -149,6 +149,8 @@ static void batadv_tt_orig_list_entry_free_rcu(struct rcu_head *rcu) | |||
149 | static void | 149 | static void |
150 | batadv_tt_orig_list_entry_free_ref(struct tt_orig_list_entry *orig_entry) | 150 | batadv_tt_orig_list_entry_free_ref(struct tt_orig_list_entry *orig_entry) |
151 | { | 151 | { |
152 | /* to avoid race conditions, immediately decrease the tt counter */ | ||
153 | atomic_dec(&orig_entry->orig_node->tt_size); | ||
152 | call_rcu(&orig_entry->rcu, batadv_tt_orig_list_entry_free_rcu); | 154 | call_rcu(&orig_entry->rcu, batadv_tt_orig_list_entry_free_rcu); |
153 | } | 155 | } |
154 | 156 | ||