aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2010-12-20 13:32:03 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-20 13:32:03 -0500
commit53320fe3bb1b1eef1aaff8dd47aae530ebeeb1e5 (patch)
treef9ac85a6dcf4ec0ee709d08b5f56f6e9c4320edf /net/batman-adv
parent58231186c4532821cb815a3a3248ca02ce5f6f0d (diff)
batman-adv: Return hna count on local buffer fill
hna_local_fill_buffer must return the number of added hna entries and not the last checked hash bucket. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/translation-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index a19e16c94da5..a633b5a435e2 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv,
162 atomic_set(&bat_priv->hna_local_changed, 0); 162 atomic_set(&bat_priv->hna_local_changed, 0);
163 163
164 spin_unlock_bh(&bat_priv->hna_lhash_lock); 164 spin_unlock_bh(&bat_priv->hna_lhash_lock);
165 return i; 165 return count;
166} 166}
167 167
168int hna_local_seq_print_text(struct seq_file *seq, void *offset) 168int hna_local_seq_print_text(struct seq_file *seq, void *offset)