Message ID | 1406724482-17689-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/include/net/sock.h b/include/net/sock.h index 447205545c1c..f4478d696112 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1776,7 +1776,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); }