Commit 0a931acf authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

ipv4: don't remove /proc/net/rt_acct

/proc/net/rt_acct is not created if NET_CLS_ROUTE=n.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d00c362f
...@@ -586,7 +586,9 @@ static void __net_exit ip_rt_do_proc_exit(struct net *net) ...@@ -586,7 +586,9 @@ static void __net_exit ip_rt_do_proc_exit(struct net *net)
{ {
remove_proc_entry("rt_cache", net->proc_net_stat); remove_proc_entry("rt_cache", net->proc_net_stat);
remove_proc_entry("rt_cache", net->proc_net); remove_proc_entry("rt_cache", net->proc_net);
#ifdef CONFIG_NET_CLS_ROUTE
remove_proc_entry("rt_acct", net->proc_net); remove_proc_entry("rt_acct", net->proc_net);
#endif
} }
static struct pernet_operations ip_rt_proc_ops __net_initdata = { static struct pernet_operations ip_rt_proc_ops __net_initdata = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment