vsock: return errors other than -ENOMEM to socket
authorBobby Eshleman <bobby.eshleman@bytedance.com>
Tue, 10 Jan 2023 10:13:23 +0000 (10:13 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 12 Jan 2023 11:53:54 +0000 (12:53 +0100)
commitc43170b7e1571efc11c443fb8889842073b77fe5
treef491a82760d6e427b058de6170529fd77de6b5b5
parentd4f12a8271fb724b68af6fe8ef54f0f2e63da74d
vsock: return errors other than -ENOMEM to socket

This removes behaviour, where error code returned from any transport
was always switched to ENOMEM. For example when user tries to send too
big message via SEQPACKET socket, transport layers return EMSGSIZE, but
this error code was always replaced with ENOMEM and returned to user.

Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/vmw_vsock/af_vsock.c