diff options
author | Eric Dumazet <edumazet@google.com> | 2015-11-05 12:50:19 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-05 15:57:51 -0500 |
commit | 49a496c97d035f2eab7cef4894dd46202184fc81 (patch) | |
tree | f2f342a141a695ddf35aa84bcb5fe6660ca570bf /net/ipv4 | |
parent | 30f7ea1c2b5f5fb7462c5ae44fe2e40cb2d6a474 (diff) | |
download | linux-49a496c97d035f2eab7cef4894dd46202184fc81.tar.gz linux-49a496c97d035f2eab7cef4894dd46202184fc81.tar.bz2 linux-49a496c97d035f2eab7cef4894dd46202184fc81.zip |
tcp: use correct req pointer in tcp_move_syn() calls
I mistakenly took wrong request sock pointer when calling tcp_move_syn()
@req_unhash is either a copy of @req, or a NULL value for
FastOpen connexions (as we do not expect to unhash the temporary
request sock from ehash table)
Fixes: 805c4bc05705 ("tcp: fix req->saved_syn race")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ying Cai <ycai@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 59aff63b1776..950e28c0cdf2 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1327,7 +1327,7 @@ struct sock *tcp_v4_syn_recv_sock(const struct sock *sk, struct sk_buff *skb, goto put_and_exit; *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash)); if (*own_req) - tcp_move_syn(newtp, req_unhash); + tcp_move_syn(newtp, req); return newsk; |