diff options
author | Arseniy Krasnov <[email protected]> | 2023-03-14 14:08:20 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-03-16 17:28:23 +0000 |
commit | 8daaf39f7f6ef53a11817f6a11ec104016c3545f (patch) | |
tree | 3f1bfdd54bb5e517746ad096ecbd04d1f2314050 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 6825e6b4f8e53799d83bc39ca6ec5baed4e2adde (diff) |
virtio/vsock: don't drop skbuff on copy failure
This returns behaviour of SOCK_STREAM read as before skbuff usage. When
copying to user fails current skbuff won't be dropped, but returned to
sockets's queue. Technically instead of 'skb_dequeue()', 'skb_peek()' is
called and when skbuff becomes empty, it is removed from queue by
'__skb_unlink()'.
Fixes: 71dc9ec9ac7d ("virtio/vsock: replace virtio_vsock_pkt with sk_buff")
Signed-off-by: Arseniy Krasnov <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Acked-by: Bobby Eshleman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions