aboutsummaryrefslogtreecommitdiff
path: root/qobject
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 14:00:17 +0100
committerMichael S. Tsirkin <mst@redhat.com>2023-12-02 15:56:49 -0500
commit20bc50137f3add52eb4788b420d717de27fed14b (patch)
treea9265c24df2e5a663b4375fb61298db88852826c /qobject
parent714a1415d7a69174e1640fcdd6eaae180fe438aa (diff)
downloadqemu-20bc50137f3add52eb4788b420d717de27fed14b.zip
qemu-20bc50137f3add52eb4788b420d717de27fed14b.tar.gz
qemu-20bc50137f3add52eb4788b420d717de27fed14b.tar.bz2
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>
Diffstat (limited to 'qobject')
0 files changed, 0 insertions, 0 deletions