diff options
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r-- | net/ipv4/proc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 8de53e1ddd54..954bcd42d50e 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -471,11 +471,12 @@ static const struct file_operations netstat_seq_fops = { | |||
471 | 471 | ||
472 | static __net_init int ip_proc_init_net(struct net *net) | 472 | static __net_init int ip_proc_init_net(struct net *net) |
473 | { | 473 | { |
474 | if (!proc_net_fops_create(net, "sockstat", S_IRUGO, &sockstat_seq_fops)) | 474 | if (!proc_create("sockstat", S_IRUGO, net->proc_net, |
475 | &sockstat_seq_fops)) | ||
475 | goto out_sockstat; | 476 | goto out_sockstat; |
476 | if (!proc_net_fops_create(net, "netstat", S_IRUGO, &netstat_seq_fops)) | 477 | if (!proc_create("netstat", S_IRUGO, net->proc_net, &netstat_seq_fops)) |
477 | goto out_netstat; | 478 | goto out_netstat; |
478 | if (!proc_net_fops_create(net, "snmp", S_IRUGO, &snmp_seq_fops)) | 479 | if (!proc_create("snmp", S_IRUGO, net->proc_net, &snmp_seq_fops)) |
479 | goto out_snmp; | 480 | goto out_snmp; |
480 | 481 | ||
481 | return 0; | 482 | return 0; |