summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_gre.c
diff options
context:
space:
mode:
authorWilson Kok <wkok@cumulusnetworks.com>2015-09-23 06:40:22 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-25 00:21:54 +0200
commit41fc014332d91ee90c32840bf161f9685b7fbf2b (patch)
treefc120c8671eeca949423e0d750c7c116abb212cc /net/ipv6/ip6_gre.c
parentbnx2x: byte swap rss_key to comply to Toeplitz specs (diff)
downloadlinux-41fc014332d91ee90c32840bf161f9685b7fbf2b.tar.xz
linux-41fc014332d91ee90c32840bf161f9685b7fbf2b.zip
fib_rules: fix fib rule dumps across multiple skbs
dump_rules returns skb length and not error. But when family == AF_UNSPEC, the caller of dump_rules assumes that it returns an error. Hence, when family == AF_UNSPEC, we continue trying to dump on -EMSGSIZE errors resulting in incorrect dump idx carried between skbs belonging to the same dump. This results in fib rule dump always only dumping rules that fit into the first skb. This patch fixes dump_rules to return error so that we exit correctly and idx is correctly maintained between skbs that are part of the same dump. Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions