netfilter: ctnetlink: use nf_conntrack_get instead of atomic_inc
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Nov 2008 14:53:33 +0000 (15:53 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 17 Nov 2008 14:53:33 +0000 (15:53 +0100)
Use nf_conntrack_get instead of the direct call to atomic_inc.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_netlink.c

index a040d46f85d6c8967f88af6c549f23206e6416c7..80a3f130815289dec1d14afdaf3c1649897a7673 100644 (file)
@@ -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);