You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/vfio-user
John Levon 622740aad9 hw/vfio-user: fix use of uninitialized variable
Coverity reported:

CID 1611805:         Uninitialized variables

in vfio_user_dma_map(). This can occur in the happy path when
->async_ops was not set; as this doesn't typically happen, it wasn't
caught during testing.

Align both map and unmap implementations to initialize ret the same way
to resolve this.

Resolves: Coverity CID 1611805
Fixes: 18e899e6 ("vfio-user: implement VFIO_USER_DMA_MAP/UNMAP")
Reported-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250715115954.515819-5-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
4 days ago
..
Kconfig
container.c hw/vfio-user: fix use of uninitialized variable 4 days ago
container.h vfio-user: set up container access to the proxy 3 weeks ago
device.c vfio-user: add coalesced posted writes 3 weeks ago
device.h vfio-user: implement VFIO_USER_DEVICE_RESET 3 weeks ago
meson.build vfio-user: implement VFIO_USER_DEVICE_GET_INFO 3 weeks ago
pci.c vfio-user: support posted writes 3 weeks ago
protocol.h vfio-user: add coalesced posted writes 3 weeks ago
proxy.c hw/vfio-user: wait for proxy close correctly 4 days ago
proxy.h vfio-user: add coalesced posted writes 3 weeks ago
trace-events vfio-user: add coalesced posted writes 3 weeks ago
trace.h vfio-user: implement message receive infrastructure 3 weeks ago