netns: allow per device ipv6 snmp statistics in non-initial namespace

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Denis V. Lunev 2008-10-07 14:47:55 -07:00 committed by David S. Miller
parent 2b4209e4b7
commit ab38dc7a70

View file

@ -231,9 +231,6 @@ int snmp6_register_dev(struct inet6_dev *idev)
return -EINVAL;
net = dev_net(idev->dev);
if (!net_eq(net, &init_net))
return 0;
if (!net->mib.proc_net_devsnmp6)
return -ENOENT;