qemu-e2k/hw/i386
Markus Armbruster 475fc97d09 amd_iommu: Fix amdvi_realize() error API violation
The Error ** argument must be NULL, &error_abort, &error_fatal, or a
pointer to a variable containing NULL.  Passing an argument of the
latter kind twice without clearing it in between is wrong: if the
first call sets an error, it no longer points to NULL for the second
call.

amdvi_realize() is wrong that way: it passes @errp to qdev_realize(),
object_property_get_int(), and msi_init() without checking it.  I
can't tell offhand whether qdev_realize() can fail here.  Fix by
checking it for failure.  object_property_get_int() can't.  Fix by
passing &error_abort instead.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200630090351.1247703-22-armbru@redhat.com>
2020-07-02 11:54:47 +02:00
..
kvm
xen x86: move max-ram-below-4g to pc 2020-06-17 14:24:22 +02:00
acpi-build.c hyperv: vmbus: Remove the 2nd IRQ 2020-06-26 09:39:40 -04:00
acpi-build.h
acpi-common.c acpi: madt: skip pci override on pci-less systems. 2020-06-12 10:17:06 -04:00
acpi-common.h acpi: madt: skip pci override on pci-less systems. 2020-06-12 10:17:06 -04:00
amd_iommu.c amd_iommu: Fix amdvi_realize() error API violation 2020-07-02 11:54:47 +02:00
amd_iommu.h
e820_memory_layout.c
e820_memory_layout.h
fw_cfg.c acpi: factor out fw_cfg_add_acpi_dsdt() 2020-06-24 17:18:28 -04:00
fw_cfg.h acpi: factor out fw_cfg_add_acpi_dsdt() 2020-06-24 17:18:28 -04:00
intel_iommu_internal.h
intel_iommu.c
Kconfig
kvmvapic.c
Makefile.objs acpi: create acpi-common.c and move madt code 2020-06-12 10:17:06 -04:00
microvm.c microvm: drop max-ram-below-4g support 2020-06-17 14:24:16 +02:00
multiboot.c
multiboot.h
pc_piix.c numa: forbid '-numa node, mem' for 5.1 and newer machine types 2020-06-26 09:39:39 -04:00
pc_q35.c numa: forbid '-numa node, mem' for 5.1 and newer machine types 2020-06-26 09:39:39 -04:00
pc_sysfw.c sysbus: Convert to sysbus_realize() etc. with Coccinelle 2020-06-15 22:05:28 +02:00
pc.c numa: forbid '-numa node, mem' for 5.1 and newer machine types 2020-06-26 09:39:39 -04:00
port92.c
trace-events
vmmouse.c
vmport.c hw/i386/vmport: Allow QTest use without crashing 2020-06-10 12:10:27 -04:00
x86-iommu-stub.c
x86-iommu.c
x86.c x86: Fix x86_cpu_new() error handling 2020-07-02 11:54:17 +02:00