diff options
author | chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil> | 2014-08-12 09:00:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-13 23:04:46 -0400 |
commit | 8356f9d564ed3da4f98e8c44cbd9f397ff9c49a5 (patch) | |
tree | 83cbb19267443b00009201aad10beb1b669ddcc3 /net | |
parent | de713b57947a7a1b9cc605c0296ee14065cd86b6 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/lec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c index 4c5b8ba0f84f..e4853b50cf40 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -833,7 +833,6 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl, | |||
833 | loff_t *l) | 833 | loff_t *l) |
834 | { | 834 | { |
835 | struct hlist_node *e = state->node; | 835 | struct hlist_node *e = state->node; |
836 | struct lec_arp_table *tmp; | ||
837 | 836 | ||
838 | if (!e) | 837 | if (!e) |
839 | e = tbl->first; | 838 | e = tbl->first; |
@@ -842,9 +841,7 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl, | |||
842 | --*l; | 841 | --*l; |
843 | } | 842 | } |
844 | 843 | ||
845 | tmp = container_of(e, struct lec_arp_table, next); | 844 | for (; e; e = e->next) { |
846 | |||
847 | hlist_for_each_entry_from(tmp, next) { | ||
848 | if (--*l < 0) | 845 | if (--*l < 0) |
849 | break; | 846 | break; |
850 | } | 847 | } |