qemu/hw/acpi
Philippe Mathieu-Daudé 95743c7a39 hw/acpi/erst: Do not ignore Error* in realize handler
erst_realizefn() passes @errp to functions without checking for
failure.  If it runs into another failure, it trips error_setv()'s
assertion.

Use the ERRP_GUARD() macro and check *errp, as suggested in commit
ae7c80a7bd ("error: New macro ERRP_GUARD()").

Cc: qemu-stable@nongnu.org
Fixes: f7e26ffa59 ("ACPI ERST: support for ACPI ERST feature")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231120130017.81286-1-philmd@linaro.org>
Reviewed-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 20bc50137f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-12-20 19:11:10 +03:00
..
acpi_interface.c
acpi-cpu-hotplug-stub.c
acpi-mem-hotplug-stub.c
acpi-nvdimm-stub.c
acpi-pci-hotplug-stub.c
acpi-stub.c
acpi-x86-stub.c
aml-build-stub.c
aml-build.c
bios-linker-loader.c
core.c
cpu_hotplug.c
cpu.c
cxl-stub.c
cxl.c
erst.c hw/acpi/erst: Do not ignore Error* in realize handler 2023-12-20 19:11:10 +03:00
generic_event_device.c
ghes-stub.c
ghes.c
hmat.c
hmat.h
ich9.c
ipmi-stub.c
ipmi.c
Kconfig
memory_hotplug.c
meson.build
nvdimm.c
pci.c
pcihp.c
piix4.c
tco.c
tpm.c
trace-events
trace.h
utils.c
viot.c
viot.h
vmgenid.c