Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Bobby Eshleman and committed by
Paolo Abeni
c43170b7 d4f12a82

+2 -1
+2 -1
net/vmw_vsock/af_vsock.c
··· 1861 1861 written = transport->stream_enqueue(vsk, 1862 1862 msg, len - total_written); 1863 1863 } 1864 + 1864 1865 if (written < 0) { 1865 - err = -ENOMEM; 1866 + err = written; 1866 1867 goto out_err; 1867 1868 } 1868 1869