diff options
| -rw-r--r-- | net/ipv4/route.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 525787b52b72..7b5e8e1d94be 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
| @@ -542,12 +542,11 @@ static __init int ip_rt_proc_init(struct net *net) | |||
| 542 | if (!pde) | 542 | if (!pde) |
| 543 | goto err1; | 543 | goto err1; |
| 544 | 544 | ||
| 545 | pde = create_proc_entry("rt_cache", S_IRUGO, net->proc_net_stat); | 545 | pde = proc_create("rt_cache", S_IRUGO, |
| 546 | net->proc_net_stat, &rt_cpu_seq_fops); | ||
| 546 | if (!pde) | 547 | if (!pde) |
| 547 | goto err2; | 548 | goto err2; |
| 548 | 549 | ||
| 549 | pde->proc_fops = &rt_cpu_seq_fops; | ||
| 550 | |||
| 551 | #ifdef CONFIG_NET_CLS_ROUTE | 550 | #ifdef CONFIG_NET_CLS_ROUTE |
| 552 | pde = create_proc_read_entry("rt_acct", 0, net->proc_net, | 551 | pde = create_proc_read_entry("rt_acct", 0, net->proc_net, |
| 553 | ip_rt_acct_read, NULL); | 552 | ip_rt_acct_read, NULL); |
