Skip to content

Commit

Permalink
lec: Fix bug introduced by b67bfe0
Browse files Browse the repository at this point in the history
b67bfe0 (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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
chas williams - CONTRACTOR authored and davem330 committed Aug 14, 2014
1 parent de713b5 commit 8356f9d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/atm/lec.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl,
loff_t *l)
{
struct hlist_node *e = state->node;
struct lec_arp_table *tmp;

if (!e)
e = tbl->first;
Expand All @@ -842,9 +841,7 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl,
--*l;
}

tmp = container_of(e, struct lec_arp_table, next);

hlist_for_each_entry_from(tmp, next) {
for (; e; e = e->next) {
if (--*l < 0)
break;
}
Expand Down

0 comments on commit 8356f9d

Please sign in to comment.