We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72175c commit 45c8a6cCopy full SHA for 45c8a6c
net/ipv4/tcp.c
@@ -3327,6 +3327,7 @@ int tcp_disconnect(struct sock *sk, int flags)
3327
struct inet_connection_sock *icsk = inet_csk(sk);
3328
struct tcp_sock *tp = tcp_sk(sk);
3329
int old_state = sk->sk_state;
3330
+ struct request_sock *req;
3331
u32 seq;
3332
3333
if (old_state != TCP_CLOSE)
@@ -3442,6 +3443,10 @@ int tcp_disconnect(struct sock *sk, int flags)
3442
3443
3444
3445
/* Clean up fastopen related fields */
3446
+ req = rcu_dereference_protected(tp->fastopen_rsk,
3447
+ lockdep_sock_is_held(sk));
3448
+ if (req)
3449
+ reqsk_fastopen_remove(sk, req, false);
3450
tcp_free_fastopen_req(tp);
3451
inet_clear_bit(DEFER_CONNECT, sk);
3452
tp->fastopen_client_fail = 0;
0 commit comments