]> err.no Git - linux-2.6/blobdiff - net/ipv6/proc.c
rtl8187: Improve wireless statistics for RTL8187B
[linux-2.6] / net / ipv6 / proc.c
index 70940b3654a180d190e6d2eddc65cfc96cce087f..f82f6074cf855340987e04c63d7df24e1058db88 100644 (file)
@@ -214,7 +214,7 @@ int snmp6_register_dev(struct inet6_dev *idev)
        if (!idev || !idev->dev)
                return -EINVAL;
 
-       if (dev_net(idev->dev) != &init_net)
+       if (!net_eq(dev_net(idev->dev), &init_net))
                return 0;
 
        if (!proc_net_devsnmp6)