use nf_conntrack_get instead of atomic_inc
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 2/7 use nf_conntrack_get instead of atomic_inc
[PATCH] 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 <[email protected]>
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
[PATCH] 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 <[email protected]>
net/netfilter/nf_conntrack_netlink.c +1 -1
@@ -1228,7 +1228,7 @@ ctnetlink_new_conntrack(struct sock *ctn 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);
Patrick McHardy
AppliedQuoted 3 lines · Pablo Neira Ayuso
[PATCH] use
nf_conntrack_getinstead ofatomic_incUse
nf_conntrack_getinstead of the direct call toatomic_inc.
Applied, thanks.