From: Alexey Dobriyan Date: Sat, 19 Dec 2009 04:11:03 +0000 (-0800) Subject: netns: fix net.ipv6.route.gc_min_interval_ms in netns X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c69fabe789b0eb468a0c7031ae7bb850760aea8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git netns: fix net.ipv6.route.gc_min_interval_ms in netns sysctl table was copied, all right, but ->data for net.ipv6.route.gc_min_interval_ms was not reinitialized for "!= &init_net" case. In init_net everthing works by accident due to correct ->data initialization in source table. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index db3b27303890..c2bd74c5f8d9 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2630,6 +2630,7 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net) table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity; table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires; table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss; + table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval; } return table;