diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-10 01:19:13 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 19:37:55 -0500 |
commit | 97324cd804b7b9fb6044e114329335db79810425 (patch) | |
tree | ffebd82bb36069d38b9063328920f39434eb5155 /net/sysctl_net.c | |
parent | a15e20982e2fbb06e85da584a0f150784042c17d (diff) |
sysctl: Implement retire_sysctl_set
This adds a small helper retire_sysctl_set to remove the intimate knowledge about
the how a sysctl_set is implemented from net/sysct_net.c
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/sysctl_net.c')
-rw-r--r-- | net/sysctl_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sysctl_net.c b/net/sysctl_net.c index a6bbee2bc710..ffd67a6515a3 100644 --- a/net/sysctl_net.c +++ b/net/sysctl_net.c | |||
@@ -82,7 +82,7 @@ static int __net_init sysctl_net_init(struct net *net) | |||
82 | 82 | ||
83 | static void __net_exit sysctl_net_exit(struct net *net) | 83 | static void __net_exit sysctl_net_exit(struct net *net) |
84 | { | 84 | { |
85 | WARN_ON(!list_empty(&net->sysctls.list)); | 85 | retire_sysctl_set(&net->sysctls); |
86 | } | 86 | } |
87 | 87 | ||
88 | static struct pernet_operations sysctl_pernet_ops = { | 88 | static struct pernet_operations sysctl_pernet_ops = { |