qemu/hw/acpi
Philippe Mathieu-Daudé 5c9f464531 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 20bc50137f3add52eb4788b420d717de27fed14b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-12-13 18:51:00 +03:00
..
acpi-cpu-hotplug-stub.c
acpi-mem-hotplug-stub.c
acpi-nvdimm-stub.c
acpi-pci-hotplug-stub.c
acpi-qmp-cmds.c
acpi-stub.c
acpi-x86-stub.c
acpi_interface.c
aml-build-stub.c
aml-build.c
bios-linker-loader.c
core.c
cpu.c
cpu_hotplug.c
cxl-stub.c
cxl.c
erst.c hw/acpi/erst: Do not ignore Error* in realize handler 2023-12-13 18:51:00 +03:00
generic_event_device.c
ghes-stub.c
ghes.c
hmat.c
hmat.h
ich9.c
ich9_tco.c
ipmi-stub.c
ipmi.c
Kconfig
memory_hotplug.c
meson.build
nvdimm.c
pci-bridge-stub.c
pci-bridge.c
pci.c
pcihp.c
piix4.c
tpm.c
trace-events
trace.h
utils.c
viot.c
viot.h
vmgenid.c