aboutsummaryrefslogtreecommitdiff
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 15:54:16 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2024-01-20 13:00:22 +0300
commita4daea6f9f187ab0340cd04a00fa2c4a82b68c34 (patch)
tree03ad40f754985b23970041e9a0d6bf517f1f5c13 /util/oslib-posix.c
parentc46f68bd7d48591c8d1cabc3b9f54c690e9c7270 (diff)
downloadqemu-a4daea6f9f187ab0340cd04a00fa2c4a82b68c34.zip
qemu-a4daea6f9f187ab0340cd04a00fa2c4a82b68c34.tar.gz
qemu-a4daea6f9f187ab0340cd04a00fa2c4a82b68c34.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> (cherry picked from commit 484aecf2d3a75251b63481be2a0c3aef635002af) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions