]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use correct req pointer in tcp_move_syn() calls
authorEric Dumazet <edumazet@google.com>
Thu, 5 Nov 2015 20:50:19 +0000 (12:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 20:57:51 +0000 (15:57 -0500)
commitba44c4ac89d51525ee209c35484214a674a34bbd
treef2f342a141a695ddf35aa84bcb5fe6660ca570bf
parent41139a8802245638e2ab97bfba53d35b3e69f91b
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: 16d6870ee0ef ("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>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c