]> err.no Git - linux-2.6/commitdiff
[NETFILTER] Remove nf_conntrack stat proc file when cleaning up
authorKOVACS Krisztian <hidden@balabit.hu>
Wed, 16 Nov 2005 00:47:09 +0000 (16:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2005 00:47:09 +0000 (16:47 -0800)
Fix nf_conntrack statistics proc file removal. Looks like the old bug
was forward-ported from ip_conntrack. :-]

Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_standalone.c

index 45224db4fe2f05e9aa945f0da59c4dd8eeb53b23..5af381f9fe3da9b30729b01d1f5a2ebbf4328696 100644 (file)
@@ -694,7 +694,7 @@ static int init_or_cleanup(int init)
  cleanup_proc_stat:
 #endif
 #ifdef CONFIG_PROC_FS
-       proc_net_remove("nf_conntrack_stat");
+       remove_proc_entry("nf_conntrack", proc_net_stat);
  cleanup_proc_exp:
        proc_net_remove("nf_conntrack_expect");
  cleanup_proc: