net: use net_eq to compare nets
[pandora-kernel.git] / net / core / sysctl_net_core.c
index 7db1de0..fcfc545 100644 (file)
@@ -134,7 +134,7 @@ static __net_init int sysctl_core_net_init(struct net *net)
        net->core.sysctl_somaxconn = SOMAXCONN;
 
        tbl = netns_core_table;
-       if (net != &init_net) {
+       if (!net_eq(net, &init_net)) {
                tbl = kmemdup(tbl, sizeof(netns_core_table), GFP_KERNEL);
                if (tbl == NULL)
                        goto err_dup;