Commit 8356f9d5 authored by chas williams - CONTRACTOR's avatar chas williams - CONTRACTOR Committed by David S. Miller

lec: Fix bug introduced by b67bfe0d

b67bfe0d (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: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de713b57
...@@ -833,7 +833,6 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl, ...@@ -833,7 +833,6 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl,
loff_t *l) loff_t *l)
{ {
struct hlist_node *e = state->node; struct hlist_node *e = state->node;
struct lec_arp_table *tmp;
if (!e) if (!e)
e = tbl->first; e = tbl->first;
...@@ -842,9 +841,7 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl, ...@@ -842,9 +841,7 @@ static void *lec_tbl_walk(struct lec_state *state, struct hlist_head *tbl,
--*l; --*l;
} }
tmp = container_of(e, struct lec_arp_table, next); for (; e; e = e->next) {
hlist_for_each_entry_from(tmp, next) {
if (--*l < 0) if (--*l < 0)
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment