Skip to content
Snippets Groups Projects
user avatar
Philippe Mathieu-Daudé authored
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 ae7c80a7 ("error: New macro ERRP_GUARD()").

Cc: qemu-stable@nongnu.org
Fixes: e7a775fd ("cryptodev: Account statistics")
Fixes: 2580b452 ("cryptodev: support QoS")
Reviewed-by: default avatarzhenwei pi <pizhenwei@bytedance.com>
Reviewed-by: default avatarGonglei <arei.gonglei@huawei.com>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231120150418.93443-1-philmd@linaro.org>
(cherry picked from commit 484aecf2d3a75251b63481be2a0c3aef635002af)
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
a4daea6f
History