]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: properly check return value in inet6_dump_all()
authorAlexey Kodanev <alexey.kodanev@oracle.com>
Fri, 2 Nov 2018 16:11:05 +0000 (19:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Nov 2018 01:04:54 +0000 (17:04 -0800)
commit397f8a9e12155d062149dfe466ada30ca1f1f547
treedb6fc39d9dd7c916a3fe6dcd468c3b3820960645
parenta6ea9e6f205058c0ca9244c631ec2b61f1acca16
ipv6: properly check return value in inet6_dump_all()

Make sure we call fib6_dump_end() if it happens that skb->len
is zero. rtnl_dump_all() can reset cb->args on the next loop
iteration there.

Fixes: 9aa9368e6b65 ("net/ipv6: Bail early if user only wants cloned entries")
Fixes: 33e2c9926605 ("net: Don't return invalid table id error when dumping all families")
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c