git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
net
/
ipv4
/
ip_input.c
diff --git
a/net/ipv4/ip_input.c
b/net/ipv4/ip_input.c
index
c7b3b60
..
f2e8819
100644
(file)
--- a/
net/ipv4/ip_input.c
+++ b/
net/ipv4/ip_input.c
@@
-231,10
+231,9
@@
static inline int ip_local_deliver_finish(struct sk_buff *skb)
if (raw_sk)
raw_v4_input(skb, skb->nh.iph, hash);
if (raw_sk)
raw_v4_input(skb, skb->nh.iph, hash);
- if ((ipprot =
inet_protos[hash]
) != NULL) {
+ if ((ipprot =
rcu_dereference(inet_protos[hash])
) != NULL) {
int ret;
int ret;
- smp_read_barrier_depends();
if (!ipprot->no_policy &&
!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) {
kfree_skb(skb);
if (!ipprot->no_policy &&
!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) {
kfree_skb(skb);