]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: clear xmit timers in tcp_v4_syn_recv_sock()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 14 Nov 2011 10:56:56 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2011 21:57:45 +0000 (16:57 -0500)
commitbcad328ddbd847bfb6d3fa3506c07acf22b3e9b7
tree6ff4c6cfc2f9b6274363ae2b0baa828b641af7a7
parentcc3c53680646f8ef9411245ff97d30d8161b9601
tcp: clear xmit timers in tcp_v4_syn_recv_sock()

Simon Kirby reported divides by zero errors in __tcp_select_window()

This happens when inet_csk_route_child_sock() returns a NULL pointer :

We free new socket while we eventually armed keepalive timer in
tcp_create_openreq_child()

Fix this by a call to tcp_clear_xmit_timers()

[ This is a followup to commit b9cf86b1b961b (net: add missing
bh_unlock_sock() calls) ]

Reported-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Tested-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c