qemu/subprojects/libvhost-user
Christian Pötzsch 5093bee0fa Fix vhost user assertion when sending more than one fd
If the client sends more than one region this assert triggers. The
reason is that two fd's are 8 bytes and VHOST_MEMORY_BASELINE_NREGIONS
is exactly 8.

The assert is wrong because it should not test for the size of the fd
array, but for the numbers of regions.

Signed-off-by: Christian Pötzsch <christian.poetzsch@kernkonzept.com>
Message-Id: <20240426083313.3081272-1-christian.poetzsch@kernkonzept.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-07-01 14:56:23 -04:00
..
include Use QEMU_SANITIZE_THREAD 2022-05-03 15:16:21 +04:00
standard-headers meson: fix meson 0.58 warning with libvhost-user subproject 2021-07-29 10:15:52 +02:00
libvhost-user-glib.c
libvhost-user-glib.h
libvhost-user.c Fix vhost user assertion when sending more than one fd 2024-07-01 14:56:23 -04:00
libvhost-user.h libvhost-user: Bump up VHOST_USER_MAX_RAM_SLOTS to 509 2024-03-12 17:56:55 -04:00
link-test.c
meson.build libvhost-user: Add extra compiler warnings 2023-01-11 10:44:35 +01:00