Skip to content

Commit

Permalink
netfilter: ctnetlink: use nf_conntrack_get instead of atomic_inc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pablo Neira Ayuso authored and Patrick McHardy committed Nov 17, 2008
1 parent 6e3354c commit 238ede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 238ede8

Please sign in to comment.