projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NETFILTER]: nf_log: use rcu_assign_pointer for RCU protected pointer
[powerpc.git]
/
net
/
netfilter
/
nf_conntrack_core.c
diff --git
a/net/netfilter/nf_conntrack_core.c
b/net/netfilter/nf_conntrack_core.c
index
9b02ec4
..
59bcab1
100644
(file)
--- a/
net/netfilter/nf_conntrack_core.c
+++ b/
net/netfilter/nf_conntrack_core.c
@@
-1105,7
+1105,7
@@
void nf_conntrack_cleanup(void)
{
int i;
{
int i;
-
ip_ct_attach = NULL
;
+
rcu_assign_pointer(ip_ct_attach, NULL)
;
/* This makes sure all current packets have passed through
netfilter framework. Roll on, two-stage module
/* This makes sure all current packets have passed through
netfilter framework. Roll on, two-stage module
@@
-1273,7
+1273,7
@@
int __init nf_conntrack_init(void)
write_unlock_bh(&nf_conntrack_lock);
/* For use by REJECT target */
write_unlock_bh(&nf_conntrack_lock);
/* For use by REJECT target */
-
ip_ct_attach = __nf_conntrack_attach
;
+
rcu_assign_pointer(ip_ct_attach, __nf_conntrack_attach)
;
/* Set up fake conntrack:
- to never be deleted, not in any hashes */
/* Set up fake conntrack:
- to never be deleted, not in any hashes */