aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppol2tp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pppol2tp.c')
-rw-r--r--drivers/net/pppol2tp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index abe91cb595f4..2eb424ba58e5 100644
--- a/drivers/net/pppol2tp.c
+++ b/drivers/net/pppol2tp.c
@@ -91,6 +91,7 @@
91#include <linux/hash.h> 91#include <linux/hash.h>
92#include <linux/sort.h> 92#include <linux/sort.h>
93#include <linux/proc_fs.h> 93#include <linux/proc_fs.h>
94#include <net/net_namespace.h>
94#include <net/dst.h> 95#include <net/dst.h>
95#include <net/ip.h> 96#include <net/ip.h>
96#include <net/udp.h> 97#include <net/udp.h>
@@ -2444,7 +2445,7 @@ static int __init pppol2tp_init(void)
2444 goto out_unregister_pppol2tp_proto; 2445 goto out_unregister_pppol2tp_proto;
2445 2446
2446#ifdef CONFIG_PROC_FS 2447#ifdef CONFIG_PROC_FS
2447 pppol2tp_proc = create_proc_entry("pppol2tp", 0, proc_net); 2448 pppol2tp_proc = create_proc_entry("pppol2tp", 0, init_net.proc_net);
2448 if (!pppol2tp_proc) { 2449 if (!pppol2tp_proc) {
2449 err = -ENOMEM; 2450 err = -ENOMEM;
2450 goto out_unregister_pppox_proto; 2451 goto out_unregister_pppox_proto;
@@ -2469,7 +2470,7 @@ static void __exit pppol2tp_exit(void)
2469 unregister_pppox_proto(PX_PROTO_OL2TP); 2470 unregister_pppox_proto(PX_PROTO_OL2TP);
2470 2471
2471#ifdef CONFIG_PROC_FS 2472#ifdef CONFIG_PROC_FS
2472 remove_proc_entry("pppol2tp", proc_net); 2473 remove_proc_entry("pppol2tp", init_net.proc_net);
2473#endif 2474#endif
2474 proto_unregister(&pppol2tp_sk_proto); 2475 proto_unregister(&pppol2tp_sk_proto);
2475} 2476}