aboutsummaryrefslogtreecommitdiff
path: root/event-loop-base.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2023-10-09 10:20:46 +0800
committerCédric Le Goater <clg@redhat.com>2023-10-18 10:10:49 +0200
commitfde4dbb7e61396a38fcc172ab02dbf839b468ebe (patch)
tree545808fec01b5d85e0e0b6e797bdb560d8997539 /event-loop-base.c
parent7e63b3113889b531cbb56b09d69cc182608bb78e (diff)
downloadqemu-fde4dbb7e61396a38fcc172ab02dbf839b468ebe.zip
qemu-fde4dbb7e61396a38fcc172ab02dbf839b468ebe.tar.gz
qemu-fde4dbb7e61396a38fcc172ab02dbf839b468ebe.tar.bz2
vfio/pci: Fix a potential memory leak in vfio_listener_region_add
When there is an failure in vfio_listener_region_add() and the section belongs to a ram device, there is an inaccurate error report which should never be related to vfio_dma_map failure. The memory holding err is also incrementally leaked in each failure. Fix it by reporting the real error and free it. Fixes: 567b5b309ab ("vfio/pci: Relax DMA map errors for MMIO regions") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'event-loop-base.c')
0 files changed, 0 insertions, 0 deletions