projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d00c362
)
ipv4: don't remove /proc/net/rt_acct
author
Alexey Dobriyan
<adobriyan@gmail.com>
Sun, 17 Jan 2010 03:32:50 +0000
(
03:32
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 18 Jan 2010 03:24:49 +0000
(19:24 -0800)
/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>
net/ipv4/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index e446496f564fef91a2e6b03fd5b00ab872ef40c0..d62b05d33384081b2a5e696f3e68f96967cf5595 100644
(file)
--- 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 = {