]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tcp: do not clear packets_out in tcp_create_openreq_child()
authorEric Dumazet <edumazet@google.com>
Thu, 17 Jan 2019 19:23:34 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:19:04 +0000 (22:19 -0800)
commiteb2c80ca87b10814e3067db9c0215701a99dc84f
tree515fde4e49c918e2c44714e0e77507b1eb34100f
parent6a408147eac4a7e51ead1bcf939a71b64c2daadf
tcp: do not clear packets_out in tcp_create_openreq_child()

New sockets have this field cleared, and tcp_disconnect()
calls tcp_write_queue_purge() which among other things
also clear tp->packets_out

So a listener is guaranteed to have this field cleared.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c