]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hash - Fix clone error handling
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Apr 2025 09:22:31 +0000 (17:22 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 11:40:54 +0000 (19:40 +0800)
commit2cfe41630a1a4f24d46825aa9656a51a38fb7f7d
tree83c10c5937f5fc7e788ef1a37de2353b975d4b21
parent19da081a28c95fe9b03ce952a2bf4a6f6bf5112c
crypto: hash - Fix clone error handling

Do not copy the exit function in crypto_clone_tfm as it should
only be set after init_tfm or clone_tfm has succeeded.

Move the setting into crypto_clone_ahash and crypto_clone_shash
instead.

Also clone the fb if necessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c
crypto/api.c
crypto/shash.c