All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/7] use nf_conntrack_get instead of atomic_inc
@ 2008-07-30 11:03 Pablo Neira Ayuso
  2008-07-30 13:25 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira Ayuso @ 2008-07-30 11:03 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

[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 <pablo@netfilter.org>

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

[-- Attachment #2: 01.patch --]
[-- Type: text/x-diff, Size: 774 bytes --]

[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 <pablo@netfilter.org>

Index: net-next-2.6.git/net/netfilter/nf_conntrack_netlink.c
===================================================================
--- net-next-2.6.git.orig/net/netfilter/nf_conntrack_netlink.c	2008-07-29 14:21:50.000000000 +0200
+++ net-next-2.6.git/net/netfilter/nf_conntrack_netlink.c	2008-07-29 14:24:33.000000000 +0200
@@ -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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/7] use nf_conntrack_get instead of atomic_inc
  2008-07-30 11:03 [PATCH 2/7] use nf_conntrack_get instead of atomic_inc Pablo Neira Ayuso
@ 2008-07-30 13:25 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-07-30 13:25 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Netfilter Development Mailinglist

Pablo Neira Ayuso wrote:
> [PATCH] use nf_conntrack_get instead of atomic_inc
> 
> Use nf_conntrack_get instead of the direct call to atomic_inc.

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-30 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 11:03 [PATCH 2/7] use nf_conntrack_get instead of atomic_inc Pablo Neira Ayuso
2008-07-30 13:25 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.