mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
tcp: Use cork flow info instead of rt->rt_dst in tcp_v4_get_peer()
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f1c0a276ea
commit
c5216cc70f
1 changed files with 2 additions and 1 deletions
|
@ -1773,7 +1773,8 @@ struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it)
|
|||
struct inet_sock *inet = inet_sk(sk);
|
||||
struct inet_peer *peer;
|
||||
|
||||
if (!rt || rt->rt_dst != inet->inet_daddr) {
|
||||
if (!rt ||
|
||||
inet->cork.fl.u.ip4.daddr != inet->inet_daddr) {
|
||||
peer = inet_getpeer_v4(inet->inet_daddr, 1);
|
||||
*release_it = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue