]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: nf_nat: properly use RCU API for nf_nat_protos array
authorPatrick McHardy <kaber@trash.net>
Mon, 12 Feb 2007 19:12:26 +0000 (11:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2007 19:12:26 +0000 (11:12 -0800)
commit77e9873545b9bf80a72c46ccf2c478a78284d837
tree7aa413f110ea04eee3ea98a10ad8e9cda7e989ca
parentfa3d55e876f60e5c4518e826cb474e692e0057e4
[NETFILTER]: nf_nat: properly use RCU API for nf_nat_protos array

Replace preempt_{enable,disable} based RCU by proper use of the
RCU API and add missing rcu_read_lock/rcu_read_unlock calls in
paths used outside of packet processing context (nfnetlink_conntrack).

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