]> Pileus Git - ~andy/linux/blobdiff - net/core/sysctl_net_core.c
Merge branch 'pending-l2x0' into cache
[~andy/linux] / net / core / sysctl_net_core.c
index 1ce4e6e85125bcb9250ebf193fe453f348fa82e4..06124872af5ba017d71e6817c9e0f4c9d8ac21ea 100644 (file)
@@ -10,7 +10,9 @@
 #include <linux/module.h>
 #include <linux/socket.h>
 #include <linux/netdevice.h>
+#include <linux/ratelimit.h>
 #include <linux/init.h>
+
 #include <net/ip.h>
 #include <net/sock.h>
 
@@ -121,7 +123,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;