diff options
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r-- | net/ipv6/ip6_fib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 946cf389ab95..31b60a02512a 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
@@ -361,6 +361,7 @@ end: | |||
361 | 361 | ||
362 | static int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) | 362 | static int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) |
363 | { | 363 | { |
364 | struct net *net = skb->sk->sk_net; | ||
364 | unsigned int h, s_h; | 365 | unsigned int h, s_h; |
365 | unsigned int e = 0, s_e; | 366 | unsigned int e = 0, s_e; |
366 | struct rt6_rtnl_dump_arg arg; | 367 | struct rt6_rtnl_dump_arg arg; |
@@ -369,6 +370,9 @@ static int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) | |||
369 | struct hlist_node *node; | 370 | struct hlist_node *node; |
370 | int res = 0; | 371 | int res = 0; |
371 | 372 | ||
373 | if (net != &init_net) | ||
374 | return 0; | ||
375 | |||
372 | s_h = cb->args[0]; | 376 | s_h = cb->args[0]; |
373 | s_e = cb->args[1]; | 377 | s_e = cb->args[1]; |
374 | 378 | ||