Message ID | 1407525955-1261-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/include/net/sock.h b/include/net/sock.h index f901631..4d64744 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1784,7 +1784,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); }