projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de713b5
)
lec: Fix bug introduced by b67bfe0d42cac56c512dd5da4b1b347a23f4b70a
author
chas williams - CONTRACTOR
<
[email protected]
>
Tue, 12 Aug 2014 13:00:36 +0000
(09:00 -0400)
committer
David S. Miller
<
[email protected]
>
Thu, 14 Aug 2014 03:04:46 +0000
(20:04 -0700)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/atm/lec.c
patch
|
blob
|
history
diff --git
a/net/atm/lec.c
b/net/atm/lec.c
index 4c5b8ba0f84febeab066010f4c4bd32652e93cd9..e4853b50cf402d9606c49daf34bc849467dab391 100644
(file)
--- 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,
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;
}