diff --git a/include/net/sock.h b/include/net/sock.h index c556fd9b05acfbb9d8d9fa41a4ace5bffb11f4a9..1563507457002532edd3ad0dfd7419c3a8cde42a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1771,7 +1771,7 @@ sk_dst_set(struct sock *sk, struct dst_entry *dst) struct dst_entry *old_dst; sk_tx_queue_clear(sk); - old_dst = xchg(&sk->sk_dst_cache, dst); + old_dst = xchg((__force struct dst_entry **)&sk->sk_dst_cache, dst); dst_release(old_dst); }