Re: [PATCH] crypto: algapi - Use crypto_unregister_algs in crypto_register_algs
From: Herbert Xu
Date: Fri Dec 19 2025 - 02:10:14 EST
On Thu, Dec 11, 2025 at 11:15:55AM +0100, Thorsten Blum wrote:
> Replace the for loop with a call to crypto_unregister_algs(). Return
> 'ret' immediately and remove the goto statement to simplify the error
> handling code.
>
> In crypto_unregister_algs(), unregister the algorithms in reverse order.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> crypto/algapi.c | 14 +++++---------
> 1 file changed, 5 insertions(+), 9 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt