[PATCH] sysctl: make sure that /proc/sys/net/ipv4 appears before per-ns ones
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv4 / sysctl_net_ipv4.c
index 14ef202a2254f21a57e4c7e5dfdd666e8ef65e63..d63e9388d92dfff616e432de6d0d4a27f3f6bfdb 100644 (file)
@@ -882,4 +882,11 @@ static __init int sysctl_ipv4_init(void)
        return 0;
 }
 
+/* set enough of tree skeleton to get rid of ordering problems */
+void __init ip_static_sysctl_init(void)
+{
+       static ctl_table table[1];
+       register_sysctl_paths(net_ipv4_ctl_path, table);
+}
+
 __initcall(sysctl_ipv4_init);