Sfoglia il codice sorgente

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>
Sven Eckelmann 14 anni fa
parent
commit
53320fe3bb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      net/batman-adv/translation-table.c

+ 1 - 1
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);
 		atomic_set(&bat_priv->hna_local_changed, 0);
 
 
 	spin_unlock_bh(&bat_priv->hna_lhash_lock);
 	spin_unlock_bh(&bat_priv->hna_lhash_lock);
-	return i;
+	return count;
 }
 }
 
 
 int hna_local_seq_print_text(struct seq_file *seq, void *offset)
 int hna_local_seq_print_text(struct seq_file *seq, void *offset)