aboutsummaryrefslogtreecommitdiff
path: root/system/arch_init.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 15:54:16 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-19 12:28:59 +0100
commit484aecf2d3a75251b63481be2a0c3aef635002af (patch)
tree6cf803fa414573b78d80d6e9e69e28a4c7950d95 /system/arch_init.c
parentc0d0b716ba3e52236088eb9f75ef5cbd7e15a4f3 (diff)
downloadqemu-484aecf2d3a75251b63481be2a0c3aef635002af.zip
qemu-484aecf2d3a75251b63481be2a0c3aef635002af.tar.gz
qemu-484aecf2d3a75251b63481be2a0c3aef635002af.tar.bz2
backends/cryptodev: Do not ignore throttle/backends Errors
Both cryptodev_backend_set_throttle() and CryptoDevBackendClass::init() can set their Error** argument. Do not ignore them, return early on failure. Without that, running into another failure trips error_setv()'s assertion. Use the ERRP_GUARD() macro as suggested in commit ae7c80a7bd ("error: New macro ERRP_GUARD()"). Cc: qemu-stable@nongnu.org Fixes: e7a775fd9f ("cryptodev: Account statistics") Fixes: 2580b452ff ("cryptodev: support QoS") Reviewed-by: zhenwei pi <pizhenwei@bytedance.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20231120150418.93443-1-philmd@linaro.org>
Diffstat (limited to 'system/arch_init.c')
0 files changed, 0 insertions, 0 deletions