Commit 7e00d78d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Fix proc removal in ip_conntrack_standalone

Someone thought it would be clever if proc code ignores removal of
non-existent entries.  Hence, we missed that /proc/net/stat/ip_conntrack
is never removed on module removal or init failure.

Found by nfsim.
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0bd3c502
......@@ -820,8 +820,8 @@ static int init_or_cleanup(int init)
nf_unregister_hook(&ip_conntrack_defrag_ops);
cleanup_proc_stat:
#ifdef CONFIG_PROC_FS
proc_net_remove("ip_conntrack_stat");
cleanup_proc_exp:
remove_proc_entry("ip_conntrack", proc_net_stat);
cleanup_proc_exp:
proc_net_remove("ip_conntrack_expect");
cleanup_proc:
proc_net_remove("ip_conntrack");
......
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