|
@@ -5380,10 +5380,8 @@ static void __net_exit addrconf_exit_net(struct net *net)
|
|
__addrconf_sysctl_unregister(net->ipv6.devconf_dflt);
|
|
__addrconf_sysctl_unregister(net->ipv6.devconf_dflt);
|
|
__addrconf_sysctl_unregister(net->ipv6.devconf_all);
|
|
__addrconf_sysctl_unregister(net->ipv6.devconf_all);
|
|
#endif
|
|
#endif
|
|
- if (!net_eq(net, &init_net)) {
|
|
|
|
- kfree(net->ipv6.devconf_dflt);
|
|
|
|
- kfree(net->ipv6.devconf_all);
|
|
|
|
- }
|
|
|
|
|
|
+ kfree(net->ipv6.devconf_dflt);
|
|
|
|
+ kfree(net->ipv6.devconf_all);
|
|
}
|
|
}
|
|
|
|
|
|
static struct pernet_operations addrconf_ops = {
|
|
static struct pernet_operations addrconf_ops = {
|