Re: [PATCH v3] backends/cryptodev: Do not ignore throttle/backends Errors

2024-01-18 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > 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 sugg

[PATCH v3] backends/cryptodev: Do not ignore throttle/backends Errors

2024-01-18 Thread Philippe Mathieu-Daudé
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 m