diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 6 |
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 | ||
5389 | static struct pernet_operations addrconf_ops = { | 5387 | static struct pernet_operations addrconf_ops = { |