]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: api - Call crypto_alg_put in crypto_unregister_alg
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Mar 2025 09:50:24 +0000 (17:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 09:39:06 +0000 (17:39 +0800)
commit27b13425349e94ad77b174b032674097cab241c8
tree42a0d54d35047d203f5171e13c81f72725de4b10
parent5a06ef1f8da226b2de587e22c17f88b72cede3be
crypto: api - Call crypto_alg_put in crypto_unregister_alg

Instead of calling cra_destroy by hand, call it through
crypto_alg_put so that the correct unwinding functions are called
through crypto_destroy_alg.

Fixes: 3d6979bf3bd5 ("crypto: api - Add cra_type->destroy hook")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c