diff options
Diffstat (limited to 'net/ipv4/inet_hashtables.c')
| -rw-r--r-- | net/ipv4/inet_hashtables.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 97824864e40d..83fb00153018 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -240,7 +240,7 @@ static inline int compute_score(struct sock *sk, struct net *net,  			return -1;  		score = sk->sk_family == PF_INET ? 2 : 1; -		if (sk->sk_incoming_cpu == raw_smp_processor_id()) +		if (READ_ONCE(sk->sk_incoming_cpu) == raw_smp_processor_id())  			score++;  	}  	return score;  | 
