summaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-25 03:47:05 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-25 14:18:28 -0700
commit0d7da9ddd9a4eb7808698d04b98bf9d62d02649b (patch)
treeb170122c08d47be35a056782be54573ba19fe0b0 /net/ipv6/raw.c
parent1c87733d0682547050ccccb400cdac425fa43b39 (diff)
downloadop-kernel-dev-0d7da9ddd9a4eb7808698d04b98bf9d62d02649b.zip
op-kernel-dev-0d7da9ddd9a4eb7808698d04b98bf9d62d02649b.tar.gz
net: add __rcu annotation to sk_filter
Add __rcu annotation to : (struct sock)->sk_filter And use appropriate rcu primitives to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 45e6efb7..86c3952 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -373,7 +373,7 @@ void raw6_icmp_error(struct sk_buff *skb, int nexthdr,
static inline int rawv6_rcv_skb(struct sock * sk, struct sk_buff * skb)
{
- if ((raw6_sk(sk)->checksum || sk->sk_filter) &&
+ if ((raw6_sk(sk)->checksum || rcu_dereference_raw(sk->sk_filter)) &&
skb_checksum_complete(skb)) {
atomic_inc(&sk->sk_drops);
kfree_skb(skb);
OpenPOWER on IntegriCloud