diff options
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 199ef379e501..8a5be290c710 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -214,6 +214,9 @@ int snmp6_register_dev(struct inet6_dev *idev) | |||
214 | if (!idev || !idev->dev) | 214 | if (!idev || !idev->dev) |
215 | return -EINVAL; | 215 | return -EINVAL; |
216 | 216 | ||
217 | if (idev->dev->nd_net != &init_net) | ||
218 | return 0; | ||
219 | |||
217 | if (!proc_net_devsnmp6) | 220 | if (!proc_net_devsnmp6) |
218 | return -ENOENT; | 221 | return -ENOENT; |
219 | 222 | ||