]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: sun8i-ss - use API helpers to setup fallback request
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Mon, 7 Apr 2025 12:36:03 +0000 (15:36 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Apr 2025 02:41:47 +0000 (10:41 +0800)
commit2f5f3cd003fa303574da1a8fcdec9f602b7fc221
tree355508744bdf5ecd8179acdc94f8bd6a4df38814
parent5f7325fbb3d416ba66f163a9272e17d70f1d9bf4
crypto: sun8i-ss - use API helpers to setup fallback request

Rather than setting up the fallback request by hand, use
ahash_request_set_callback() and ahash_request_set_crypt() API helpers
to properly setup the new request.

This also ensures that the completion callback is properly passed down
to the fallback algorithm, which avoids a crash with async fallbacks.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c