[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 11/16] vfio/platform: fix a wrong returned value
From: |
Eric Auger |
Subject: |
[Qemu-devel] [PATCH v3 11/16] vfio/platform: fix a wrong returned value in vfio_populate_device |
Date: |
Sun, 2 Oct 2016 20:50:09 +0000 |
In case the vfio_init_intp fails we currently do not return an
error value. This patch fixes the bug. The returned value is not
explicit but in practice the error object is the one used to
report the error to the end-user and the actual returned error
value is not used.
Signed-off-by: Eric Auger <address@hidden>
---
hw/vfio/platform.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index 1a35da0..484e31f 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -508,6 +508,7 @@ static int vfio_populate_device(VFIODevice *vbasedev, Error
**errp)
irq.flags);
intp = vfio_init_intp(vbasedev, irq, errp);
if (!intp) {
+ ret = -1;
goto irq_err;
}
}
--
1.9.1
- [Qemu-devel] [PATCH v3 00/16] Convert VFIO-PCI to realize, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 01/16] vfio/pci: Use local error object in vfio_initfn, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 02/16] vfio/pci: Pass an error object to vfio_populate_vga, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 03/16] vfio/pci: Pass an error object to vfio_populate_device, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 06/16] vfio/pci: Pass an error object to vfio_add_capabilities, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 05/16] vfio/pci: Pass an error object to vfio_intx_enable, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 07/16] vfio/pci: Pass an error object to vfio_pci_igd_opregion_init, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 04/16] vfio/pci: Pass an error object to vfio_msix_early_setup, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 08/16] vfio: Pass an error object to vfio_get_group, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 11/16] vfio/platform: fix a wrong returned value in vfio_populate_device,
Eric Auger <=
- [Qemu-devel] [PATCH v3 10/16] vfio/platform: Pass an error object to vfio_populate_device, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 09/16] vfio: Pass an error object to vfio_get_device, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 12/16] vfio/platform: Pass an error object to vfio_base_device_init, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 14/16] vfio/pci: Remove vfio_msix_early_setup returned value, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 15/16] vfio/pci: Remove vfio_populate_device returned value, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 13/16] vfio/pci: Conversion to realize, Eric Auger, 2016/10/02
- [Qemu-devel] [PATCH v3 16/16] vfio/pci: Handle host oversight, Eric Auger, 2016/10/02