Commit 8356f9d564ed3da4f98e8c44cbd9f397ff9c49a5
Committed by
David S. Miller
1 parent
de713b5794
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
lec: Fix bug introduced by b67bfe0d42cac56c512dd5da4b1b347a23f4b70a
b67bfe0d42cac56c512dd5da4b1b347a23f4b70a (hlist: drop the node parameter from iterators) dropped the node parameter from iterators which lec_tbl_walk() was using to iterate the list. Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
net/atm/lec.c
... | ... | @@ -833,7 +833,6 @@ |
833 | 833 | loff_t *l) |
834 | 834 | { |
835 | 835 | struct hlist_node *e = state->node; |
836 | - struct lec_arp_table *tmp; | |
837 | 836 | |
838 | 837 | if (!e) |
839 | 838 | e = tbl->first; |
... | ... | @@ -842,9 +841,7 @@ |
842 | 841 | --*l; |
843 | 842 | } |
844 | 843 | |
845 | - tmp = container_of(e, struct lec_arp_table, next); | |
846 | - | |
847 | - hlist_for_each_entry_from(tmp, next) { | |
844 | + for (; e; e = e->next) { | |
848 | 845 | if (--*l < 0) |
849 | 846 | break; |
850 | 847 | } |