projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5823118
)
batman-adv: Return hna count on local buffer fill
author
Sven Eckelmann
<sven@narfation.org>
Mon, 20 Dec 2010 18:32:03 +0000
(10:32 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 20 Dec 2010 18:32:03 +0000
(10:32 -0800)
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>
net/batman-adv/translation-table.c
patch
|
blob
|
blame
|
history
diff --git
a/net/batman-adv/translation-table.c
b/net/batman-adv/translation-table.c
index a19e16c94da52929f2a9bdbcef10aa4f5071efef..a633b5a435e2ca21f4ef6062cbf62a2c1f8619c8 100644
(file)
--- 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,
atomic_set(&bat_priv->hna_local_changed, 0);
spin_unlock_bh(&bat_priv->hna_lhash_lock);
- return
i
;
+ return
count
;
}
int hna_local_seq_print_text(struct seq_file *seq, void *offset)