diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 212a0888408d..28d03e64200b 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -848,10 +848,10 @@ acct: | |||
848 | } | 848 | } |
849 | EXPORT_SYMBOL_GPL(__nf_ct_refresh_acct); | 849 | EXPORT_SYMBOL_GPL(__nf_ct_refresh_acct); |
850 | 850 | ||
851 | void __nf_ct_kill_acct(struct nf_conn *ct, | 851 | bool __nf_ct_kill_acct(struct nf_conn *ct, |
852 | enum ip_conntrack_info ctinfo, | 852 | enum ip_conntrack_info ctinfo, |
853 | const struct sk_buff *skb, | 853 | const struct sk_buff *skb, |
854 | int do_acct) | 854 | int do_acct) |
855 | { | 855 | { |
856 | #ifdef CONFIG_NF_CT_ACCT | 856 | #ifdef CONFIG_NF_CT_ACCT |
857 | if (do_acct) { | 857 | if (do_acct) { |
@@ -862,8 +862,11 @@ void __nf_ct_kill_acct(struct nf_conn *ct, | |||
862 | spin_unlock_bh(&nf_conntrack_lock); | 862 | spin_unlock_bh(&nf_conntrack_lock); |
863 | } | 863 | } |
864 | #endif | 864 | #endif |
865 | if (del_timer(&ct->timeout)) | 865 | if (del_timer(&ct->timeout)) { |
866 | ct->timeout.function((unsigned long)ct); | 866 | ct->timeout.function((unsigned long)ct); |
867 | return true; | ||
868 | } | ||
869 | return false; | ||
867 | } | 870 | } |
868 | EXPORT_SYMBOL_GPL(__nf_ct_kill_acct); | 871 | EXPORT_SYMBOL_GPL(__nf_ct_kill_acct); |
869 | 872 | ||