diff options
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 34a628625d9c..e7a6fa3d70bb 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -857,12 +857,12 @@ static __init int sysctl_ipv4_init(void) | |||
857 | if (!i->procname) | 857 | if (!i->procname) |
858 | return -EINVAL; | 858 | return -EINVAL; |
859 | 859 | ||
860 | hdr = register_sysctl_paths(net_ipv4_ctl_path, ipv4_table); | 860 | hdr = register_net_sysctl_table(&init_net, net_ipv4_ctl_path, ipv4_table); |
861 | if (hdr == NULL) | 861 | if (hdr == NULL) |
862 | return -ENOMEM; | 862 | return -ENOMEM; |
863 | 863 | ||
864 | if (register_pernet_subsys(&ipv4_sysctl_ops)) { | 864 | if (register_pernet_subsys(&ipv4_sysctl_ops)) { |
865 | unregister_sysctl_table(hdr); | 865 | unregister_net_sysctl_table(hdr); |
866 | return -ENOMEM; | 866 | return -ENOMEM; |
867 | } | 867 | } |
868 | 868 | ||