aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 9eac3a7fefa3..f7c8bbeb27b7 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -5380,10 +5380,8 @@ static void __net_exit addrconf_exit_net(struct net *net)
5380 __addrconf_sysctl_unregister(net->ipv6.devconf_dflt); 5380 __addrconf_sysctl_unregister(net->ipv6.devconf_dflt);
5381 __addrconf_sysctl_unregister(net->ipv6.devconf_all); 5381 __addrconf_sysctl_unregister(net->ipv6.devconf_all);
5382#endif 5382#endif
5383 if (!net_eq(net, &init_net)) { 5383 kfree(net->ipv6.devconf_dflt);
5384 kfree(net->ipv6.devconf_dflt); 5384 kfree(net->ipv6.devconf_all);
5385 kfree(net->ipv6.devconf_all);
5386 }
5387} 5385}
5388 5386
5389static struct pernet_operations addrconf_ops = { 5387static struct pernet_operations addrconf_ops = {