From: Eric Dumazet Date: Tue, 28 Jul 2009 23:43:08 +0000 (+0000) Subject: pppoe: fix /proc/net/pppoe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72fc939789dbe7ca091b50b686d45ac0df15417a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git pppoe: fix /proc/net/pppoe 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index f0031f1f97e5..5f2090233d7b 100644 --- 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)