tcp: do not rearm rsk_timer on FastOpen requests
authorEric Dumazet <edumazet@google.com>
Wed, 8 Apr 2015 22:34:04 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2015 00:19:42 +0000 (20:19 -0400)
commitdd929c1b3df94a7236c637fe294f04653d07b0d5
treedf21fba4fdc2ae548c09f7b415f5c86c0433e83c
parent82740b9ac2fbd935361c1dc770ec49b692c28e7d
tcp: do not rearm rsk_timer on FastOpen requests

FastOpen requests are not like other regular request sockets.

They do not yet use rsk_timer : tcp_fastopen_queue_check()
simply manually removes one expired request from fastopenq->rskq_rst
list.

Therefore, tcp_check_req() must not call mod_timer_pending(),
otherwise we crash because rsk_timer was not initialized.

Fixes: fa76ce7328b ("inet: get rid of central tcp/dccp listener timer")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c