qemu-irix/hw/virtio
Maxime Coquelin b9ec9bd468 vhost-user: unregister slave req handler at cleanup time
If the backend sends a request just before closing the socket,
the aio dispatcher might schedule its reading after the vhost
device has been cleaned, leading to a NULL pointer dereference
in slave_read();

vhost_user_cleanup() already closes the socket but it is not
enough, the handler has to be unregistered.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-07-03 22:29:49 +03:00
..
Makefile.objs
trace-events
vhost-backend.c vhost: ensure vhost_ops are set before calling iotlb callback 2017-07-03 22:29:49 +03:00
vhost-stub.c
vhost-user.c vhost-user: unregister slave req handler at cleanup time 2017-07-03 22:29:49 +03:00
vhost-vsock.c
vhost.c
virtio-balloon.c
virtio-bus.c
virtio-crypto-pci.c
virtio-crypto.c
virtio-mmio.c
virtio-pci.c pci: Make errp the last parameter of pci_add_capability() 2017-07-03 22:29:49 +03:00
virtio-pci.h
virtio-rng.c
virtio.c