]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fib: fix fib dump restart
authorEric Dumazet <edumazet@google.com>
Mon, 25 Jun 2012 22:37:19 +0000 (15:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 22:37:19 +0000 (15:37 -0700)
commita53cf7143f6218c98f15db79efdd5ca5385d7193
tree1aec3e52fc38592894507dbff9c469297b32cb1d
parentc8c3d4f2332ea6fc9e9e632b5d176f0972be81f9
ipv6: fib: fix fib dump restart

Commit cc52a2de5b03b2308d (ipv6: fib: fix crash when changing large fib
while dumping it) introduced ability to restart the dump at tree root,
but failed to skip correctly a count of already dumped entries. Code
didn't match Patrick intent.

We must skip exactly the number of already dumped entries.

Note that like other /proc/net files or netlink producers, we could
still dump some duplicates entries.

Reported-by: Debabrata Banerjee <dbavatar@gmail.com>
Reported-by: Josh Hunt <johunt@akamai.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c