diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 14c37aa653ff..5f0486852298 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2349,6 +2349,8 @@ int tcp_disconnect(struct sock *sk, int flags) tcp_saved_syn_free(tp); tp->bytes_acked = 0; tp->bytes_received = 0; + tp->data_segs_in = 0; + tp->data_segs_out = 0; /* Clean up fastopen related fields */ tcp_free_fastopen_req(tp);