aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/anycast.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r--net/ipv6/anycast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index b8c533fbdb63..0bd665498d06 100644
--- a/net/ipv6/anycast.c
+++ b/net/ipv6/anycast.c
@@ -30,6 +30,7 @@
30#include <linux/proc_fs.h> 30#include <linux/proc_fs.h>
31#include <linux/seq_file.h> 31#include <linux/seq_file.h>
32 32
33#include <net/net_namespace.h>
33#include <net/sock.h> 34#include <net/sock.h>
34#include <net/snmp.h> 35#include <net/snmp.h>
35 36
@@ -578,7 +579,7 @@ static const struct file_operations ac6_seq_fops = {
578 579
579int __init ac6_proc_init(void) 580int __init ac6_proc_init(void)
580{ 581{
581 if (!proc_net_fops_create("anycast6", S_IRUGO, &ac6_seq_fops)) 582 if (!proc_net_fops_create(&init_net, "anycast6", S_IRUGO, &ac6_seq_fops))
582 return -ENOMEM; 583 return -ENOMEM;
583 584
584 return 0; 585 return 0;
@@ -586,7 +587,7 @@ int __init ac6_proc_init(void)
586 587
587void ac6_proc_exit(void) 588void ac6_proc_exit(void)
588{ 589{
589 proc_net_remove("anycast6"); 590 proc_net_remove(&init_net, "anycast6");
590} 591}
591#endif 592#endif
592 593