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:
f0c5b35
)
pppoe: fix /proc/net/pppoe
author
Eric Dumazet
<
[email protected]
>
Tue, 28 Jul 2009 23:43:08 +0000
(23:43 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 30 Jul 2009 21:19:19 +0000
(14:19 -0700)
If a socket is hashed in last slot of pppoe hash table (PPPOE_HASH_SIZE-1)
we report it many times (up to filling seq buffer)
(Only the last socket of last slot)
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/pppoe.c
patch
|
blob
|
history
diff --git
a/drivers/net/pppoe.c
b/drivers/net/pppoe.c
index f0031f1f97e5e1b7bd52d825021fa3783c93885a..5f2090233d7bd8ba3eb6a82fa8613db0f29f6348 100644
(file)
--- a/
drivers/net/pppoe.c
+++ b/
drivers/net/pppoe.c
@@
-1063,6
+1063,7
@@
static void *pppoe_seq_next(struct seq_file *seq, void *v, loff_t *pos)
else {
int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote);
+ po = NULL;
while (++hash < PPPOE_HASH_SIZE) {
po = pn->hash_table[hash];
if (po)