diff options
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 393197afb19..a0aa6d3c2c0 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2175,7 +2175,7 @@ static int __init af_unix_init(void) | |||
2175 | 2175 | ||
2176 | sock_register(&unix_family_ops); | 2176 | sock_register(&unix_family_ops); |
2177 | register_pernet_subsys(&unix_net_ops); | 2177 | register_pernet_subsys(&unix_net_ops); |
2178 | unix_sysctl_register(); | 2178 | unix_sysctl_register(&init_net); |
2179 | out: | 2179 | out: |
2180 | return rc; | 2180 | return rc; |
2181 | } | 2181 | } |
@@ -2183,7 +2183,7 @@ out: | |||
2183 | static void __exit af_unix_exit(void) | 2183 | static void __exit af_unix_exit(void) |
2184 | { | 2184 | { |
2185 | sock_unregister(PF_UNIX); | 2185 | sock_unregister(PF_UNIX); |
2186 | unix_sysctl_unregister(); | 2186 | unix_sysctl_unregister(&init_net); |
2187 | proto_unregister(&unix_proto); | 2187 | proto_unregister(&unix_proto); |
2188 | unregister_pernet_subsys(&unix_net_ops); | 2188 | unregister_pernet_subsys(&unix_net_ops); |
2189 | } | 2189 | } |