diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-17 09:53:33 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-17 09:53:33 -0500 |
commit | 238ede8160443a32379fd8f9eb88d00456a09bb4 (patch) | |
tree | 057bde30af312203d0da4e6b87f014f25a2b1b6a /net | |
parent | 6e3354c1e9946fa585de40e93ad917ec7abd006e (diff) |
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 <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1209 | goto out_unlock; | 1209 | goto out_unlock; |
1210 | } | 1210 | } |
1211 | master_ct = nf_ct_tuplehash_to_ctrack(master_h); | 1211 | master_ct = nf_ct_tuplehash_to_ctrack(master_h); |
1212 | atomic_inc(&master_ct->ct_general.use); | 1212 | nf_conntrack_get(&master_ct->ct_general); |
1213 | } | 1213 | } |
1214 | 1214 | ||
1215 | spin_unlock_bh(&nf_conntrack_lock); | 1215 | spin_unlock_bh(&nf_conntrack_lock); |