aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index a05c34260e70..2386090c3a16 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -103,6 +103,7 @@
103#include <asm/uaccess.h> 103#include <asm/uaccess.h>
104#include <linux/skbuff.h> 104#include <linux/skbuff.h>
105#include <linux/netdevice.h> 105#include <linux/netdevice.h>
106#include <net/net_namespace.h>
106#include <net/sock.h> 107#include <net/sock.h>
107#include <net/tcp_states.h> 108#include <net/tcp_states.h>
108#include <net/af_unix.h> 109#include <net/af_unix.h>
@@ -2135,7 +2136,7 @@ static int __init af_unix_init(void)
2135 2136
2136 sock_register(&unix_family_ops); 2137 sock_register(&unix_family_ops);
2137#ifdef CONFIG_PROC_FS 2138#ifdef CONFIG_PROC_FS
2138 proc_net_fops_create("unix", 0, &unix_seq_fops); 2139 proc_net_fops_create(&init_net, "unix", 0, &unix_seq_fops);
2139#endif 2140#endif
2140 unix_sysctl_register(); 2141 unix_sysctl_register();
2141out: 2142out:
@@ -2146,7 +2147,7 @@ static void __exit af_unix_exit(void)
2146{ 2147{
2147 sock_unregister(PF_UNIX); 2148 sock_unregister(PF_UNIX);
2148 unix_sysctl_unregister(); 2149 unix_sysctl_unregister();
2149 proc_net_remove("unix"); 2150 proc_net_remove(&init_net, "unix");
2150 proto_unregister(&unix_proto); 2151 proto_unregister(&unix_proto);
2151} 2152}
2152 2153