pppoe: fix /proc/net/pppoe
commit72fc939789dbe7ca091b50b686d45ac0df15417a
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 28 Jul 2009 23:43:08 +0000 (28 23:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2009 21:19:19 +0000 (30 14:19 -0700)
tree450d68ac3788c335ac33c3ecc14be1e294f78a20
parentf0c5b35c6c93c89a9d8ccab19b0b4842f5dfddc5
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 <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppoe.c