mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
lec: Fix bug introduced by b67bfe0d42
b67bfe0d42
(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>
This commit is contained in:
parent
de713b5794
commit
8356f9d564
@ -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;
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user