]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/vsock: use 'target' in notify_poll_in callback
authorArseniy Krasnov <AVKrasnov@sberdevices.ru>
Fri, 19 Aug 2022 05:29:34 +0000 (05:29 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Aug 2022 08:43:11 +0000 (10:43 +0200)
commit1e004b47cf8a6fc4c2a1a7da09d49b5b3e3991ea
tree3edd49d4777544dc0eeea57f928d8092506e3fa1
parent7cd1d76b2f984c94e4e58b1bb66dc278b5deace4
virtio/vsock: use 'target' in notify_poll_in callback

This callback controls setting of POLLIN, POLLRDNORM output bits of poll()
syscall, but in some cases, it is incorrectly to set it, when socket has
at least 1 bytes of available data. Use 'target' which is already exists.

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/virtio_transport_common.c