]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: rk3288 - use API helpers to setup fallback request
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Mon, 7 Apr 2025 12:36:02 +0000 (15:36 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:16:21 +0000 (15:16 +0800)
commitcbc9f5bcfa72d7e58cbace18c97e4df7e3a73058
tree8332e31673130a691e6fe43d9d27b3d65760a3fd
parent2f0c856af6258b7d0110872b72a53267bfe72715
crypto: rk3288 - 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/rockchip/rk3288_crypto_ahash.c