Re: [PATCH v3] crypto/algapi: fix refcount leak in crypto_register_alg()

From: Herbert Xu

Date: Wed Jun 03 2026 - 22:06:46 EST


On Wed, Jun 03, 2026 at 08:21:40AM +0000, Wentao Liang wrote:
> When crypto_register_alg() calls crypto_check_alg() successfully,
> the algorithm's refcount is set to one. If the subsequent handling

The algorithm wasn't registered anywhere and the refcount isn't used.

I fail to see the point of your patch.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt