Stefano Garzarella eba49f06f2 vsock: fix timeout in vsock_accept()
[ Upstream commit 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 ]

The accept(2) is an "input" socket interface, so we should use
SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout.

So this patch replace sock_sndtimeo() with sock_rcvtimeo() to
use the right timeout in the vsock_accept().

Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-11 09:22:59 +02:00
..
2019-09-16 08:20:44 +02:00
2019-06-22 08:16:14 +02:00
2020-05-20 08:17:12 +02:00
2019-12-05 15:38:15 +01:00
2020-01-17 19:45:49 +01:00
2019-01-09 17:14:46 +01:00
2020-01-17 19:45:49 +01:00