diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index e2d1def70841..031a5e6fb4aa 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -500,7 +500,7 @@ static inline unsigned int run_filter(struct sk_buff *skb, struct sock *sk, | |||
500 | struct sk_filter *filter; | 500 | struct sk_filter *filter; |
501 | 501 | ||
502 | rcu_read_lock_bh(); | 502 | rcu_read_lock_bh(); |
503 | filter = rcu_dereference(sk->sk_filter); | 503 | filter = rcu_dereference_bh(sk->sk_filter); |
504 | if (filter != NULL) | 504 | if (filter != NULL) |
505 | res = sk_run_filter(skb, filter->insns, filter->len); | 505 | res = sk_run_filter(skb, filter->insns, filter->len); |
506 | rcu_read_unlock_bh(); | 506 | rcu_read_unlock_bh(); |