Skip to content

Commit

Permalink
batman-adv: Return hna count on local buffer fill
Browse files Browse the repository at this point in the history
hna_local_fill_buffer must return the number of added hna entries and
not the last checked hash bucket.

Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ecsv authored and davem330 committed Dec 20, 2010
1 parent 5823118 commit 53320fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53320fe

Please sign in to comment.