diff options
Diffstat (limited to 'net/ipv4/fib_hash.c')
-rw-r--r-- | net/ipv4/fib_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index ee1ffdb3044f..8de21bc4947a 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c | |||
@@ -1041,15 +1041,15 @@ static const struct file_operations fib_seq_fops = { | |||
1041 | .release = seq_release_private, | 1041 | .release = seq_release_private, |
1042 | }; | 1042 | }; |
1043 | 1043 | ||
1044 | int __init fib_proc_init(void) | 1044 | int __net_init fib_proc_init(struct net *net) |
1045 | { | 1045 | { |
1046 | if (!proc_net_fops_create(&init_net, "route", S_IRUGO, &fib_seq_fops)) | 1046 | if (!proc_net_fops_create(net, "route", S_IRUGO, &fib_seq_fops)) |
1047 | return -ENOMEM; | 1047 | return -ENOMEM; |
1048 | return 0; | 1048 | return 0; |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | void __init fib_proc_exit(void) | 1051 | void __net_exit fib_proc_exit(struct net *net) |
1052 | { | 1052 | { |
1053 | proc_net_remove(&init_net, "route"); | 1053 | proc_net_remove(net, "route"); |
1054 | } | 1054 | } |
1055 | #endif /* CONFIG_PROC_FS */ | 1055 | #endif /* CONFIG_PROC_FS */ |