]> www.infradead.org Git - users/dwmw2/qemu.git/commit
virtio-iommu: Fix error handling in virtio_iommu_set_host_iova_ranges()
authorEric Auger <eric.auger@redhat.com>
Mon, 1 Jul 2024 08:48:53 +0000 (10:48 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 9 Jul 2024 09:50:37 +0000 (11:50 +0200)
commit37baedf8e8a78cf799956447e40da79b967882bb
treec9c06afd28dab95dda04a2d41a7733a7d82c0d87
parent44b7329de469c121555a1acf9b288f3ae71b8e61
virtio-iommu: Fix error handling in virtio_iommu_set_host_iova_ranges()

In case no IOMMUPciBus/IOMMUDevice are found we need to properly
set the error handle and return.

Fixes : Coverity CID 1549006

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Fixes: cf2647a76e ("virtio-iommu: Compute host reserved regions")
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-iommu.c