diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-01-17 04:32:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-18 04:24:49 +0100 |
commit | 0a931acfd19faf13129a22a46c06f330ecc2a4a3 (patch) | |
tree | 10746982180bb2db06d6068b6d34a9548ff36490 /net/ipv4 | |
parent | ax25: netrom: rose: Fix timer oopses (diff) | |
download | linux-0a931acfd19faf13129a22a46c06f330ecc2a4a3.tar.xz linux-0a931acfd19faf13129a22a46c06f330ecc2a4a3.zip |
ipv4: don't remove /proc/net/rt_acct
/proc/net/rt_acct is not created if NET_CLS_ROUTE=n.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e446496f564f..d62b05d33384 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -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); +#ifdef CONFIG_NET_CLS_ROUTE remove_proc_entry("rt_acct", net->proc_net); +#endif } static struct pernet_operations ip_rt_proc_ops __net_initdata = { |