diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index c556fd9b05ac..156350745700 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) | |||
1771 | struct dst_entry *old_dst; | 1771 | struct dst_entry *old_dst; |
1772 | 1772 | ||
1773 | sk_tx_queue_clear(sk); | 1773 | sk_tx_queue_clear(sk); |
1774 | old_dst = xchg(&sk->sk_dst_cache, dst); | 1774 | old_dst = xchg((__force struct dst_entry **)&sk->sk_dst_cache, dst); |
1775 | dst_release(old_dst); | 1775 | dst_release(old_dst); |
1776 | } | 1776 | } |
1777 | 1777 | ||