summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Barber <smbarber@chromium.org>2019-06-14 23:42:37 -0700
committerDavid S. Miller <davem@davemloft.net>2019-06-15 14:01:09 -0700
commit42f5cda5eaf4396a939ae9bb43bb8d1d09c1b15c (patch)
tree682bf98a5b4c1c4721c9ef5f0ee430b9dcaf13a6 /drivers/net
parent760c80b70bed2cd01630e8595d1bbde910339f31 (diff)
downloadlinux-42f5cda5eaf4396a939ae9bb43bb8d1d09c1b15c.tar.bz2
vsock/virtio: set SOCK_DONE on peer shutdown
Set the SOCK_DONE flag to match the TCP_CLOSING state when a peer has shut down and there is nothing left to read. This fixes the following bug: 1) Peer sends SHUTDOWN(RDWR). 2) Socket enters TCP_CLOSING but SOCK_DONE is not set. 3) read() returns -ENOTCONN until close() is called, then returns 0. Signed-off-by: Stephen Barber <smbarber@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions