Skip to content

Commit

Permalink
batman-adv: Fix kernel panic when fetching vis data on a vis server
Browse files Browse the repository at this point in the history
The hash_iterate removal introduced a bug leading to a kernel panic when
fetching the vis data on a vis server. That commit forgot to rename one
variable name, which this commit fixes now.

Reported-by: Russell Senior <[email protected]>
Signed-off-by: Linus Lüssing <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
  • Loading branch information
T-X authored and ecsv committed Jan 25, 2011
1 parent aa0adb1 commit dd58ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/batman-adv/vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ int vis_seq_print_text(struct seq_file *seq, void *offset)
buff_pos += sprintf(buff + buff_pos, "%pM,",
entry->addr);

for (i = 0; i < packet->entries; i++)
for (j = 0; j < packet->entries; j++)
buff_pos += vis_data_read_entry(
buff + buff_pos,
&entries[i],
&entries[j],
entry->addr,
entry->primary);

Expand Down

0 comments on commit dd58ddc

Please sign in to comment.