]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: Properly use RCU in nf_ct_attach
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:09:19 +0000 (11:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:09:19 +0000 (11:09 -0800)
commit8fb29d8fc7933a4790cec203302882e1a71da292
tree3b3f6810796367efa5f76209aed12bec6c6a8b17
parent8ccd97c9e350a0504d60df6af0dde002258c0e8b
[NETFILTER]: Properly use RCU in nf_ct_attach

Use rcu_assign_pointer/rcu_dereference for ip_ct_attach pointer instead
of self-made RCU and use rcu_read_lock to make sure the conntrack module
doesn't disappear below us while calling it, since this function can be
called from outside the netfilter hooks.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c
net/netfilter/core.c
net/netfilter/nf_conntrack_core.c