aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_hash.c')
-rw-r--r--net/ipv4/fib_hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c
index 9ad1d9ff9ce7..9fafbeea8fe6 100644
--- a/net/ipv4/fib_hash.c
+++ b/net/ipv4/fib_hash.c
@@ -35,6 +35,7 @@
35#include <linux/netlink.h> 35#include <linux/netlink.h>
36#include <linux/init.h> 36#include <linux/init.h>
37 37
38#include <net/net_namespace.h>
38#include <net/ip.h> 39#include <net/ip.h>
39#include <net/protocol.h> 40#include <net/protocol.h>
40#include <net/route.h> 41#include <net/route.h>
@@ -1068,13 +1069,13 @@ static const struct file_operations fib_seq_fops = {
1068 1069
1069int __init fib_proc_init(void) 1070int __init fib_proc_init(void)
1070{ 1071{
1071 if (!proc_net_fops_create("route", S_IRUGO, &fib_seq_fops)) 1072 if (!proc_net_fops_create(&init_net, "route", S_IRUGO, &fib_seq_fops))
1072 return -ENOMEM; 1073 return -ENOMEM;
1073 return 0; 1074 return 0;
1074} 1075}
1075 1076
1076void __init fib_proc_exit(void) 1077void __init fib_proc_exit(void)
1077{ 1078{
1078 proc_net_remove("route"); 1079 proc_net_remove(&init_net, "route");
1079} 1080}
1080#endif /* CONFIG_PROC_FS */ 1081#endif /* CONFIG_PROC_FS */