aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index beb924c248e..bbc726a49d8 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -119,6 +119,7 @@
119#include <linux/netdevice.h> 119#include <linux/netdevice.h>
120#include <net/protocol.h> 120#include <net/protocol.h>
121#include <linux/skbuff.h> 121#include <linux/skbuff.h>
122#include <net/net_namespace.h>
122#include <net/request_sock.h> 123#include <net/request_sock.h>
123#include <net/sock.h> 124#include <net/sock.h>
124#include <net/xfrm.h> 125#include <net/xfrm.h>
@@ -1973,7 +1974,7 @@ static const struct file_operations proto_seq_fops = {
1973static int __init proto_init(void) 1974static int __init proto_init(void)
1974{ 1975{
1975 /* register /proc/net/protocols */ 1976 /* register /proc/net/protocols */
1976 return proc_net_fops_create("protocols", S_IRUGO, &proto_seq_fops) == NULL ? -ENOBUFS : 0; 1977 return proc_net_fops_create(&init_net, "protocols", S_IRUGO, &proto_seq_fops) == NULL ? -ENOBUFS : 0;
1977} 1978}
1978 1979
1979subsys_initcall(proto_init); 1980subsys_initcall(proto_init);