From: Pablo Neira Ayuso Date: Mon, 17 Nov 2008 14:53:33 +0000 (+0100) Subject: netfilter: ctnetlink: use nf_conntrack_get instead of atomic_inc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=238ede8160443a32379fd8f9eb88d00456a09bb4;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git netfilter: ctnetlink: use nf_conntrack_get instead of atomic_inc Use nf_conntrack_get instead of the direct call to atomic_inc. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy --- diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index a040d46f85d6..80a3f1308152 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c @@ -1209,7 +1209,7 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb, goto out_unlock; } master_ct = nf_ct_tuplehash_to_ctrack(master_h); - atomic_inc(&master_ct->ct_general.use); + nf_conntrack_get(&master_ct->ct_general); } spin_unlock_bh(&nf_conntrack_lock);