[NETFILTER]: nf_nat: properly use RCU for ip_nat_decode_session
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 06:42:51 +0000 (22:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:06 +0000 (14:59 -0800)
commit051578ccbcdad3b24b621dfb652194e36759e8d5
treed0afda1f43bd1e6de4d38e9efa4c498723e7f206
parent1e796fda00f06bac584f0e4ad8750ab9430d79d3
[NETFILTER]: nf_nat: properly use RCU for ip_nat_decode_session

We need to use rcu_assign_pointer/rcu_dereference to avoid races.
Also remove an obsolete CONFIG_IP_NAT_NEEDED ifdef.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter.h
net/ipv4/netfilter/nf_nat_standalone.c