crypto: img-hash - use API helpers to setup fallback request
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Mon, 7 Apr 2025 12:36:01 +0000 (15:36 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:16:21 +0000 (15:16 +0800)
commit2f0c856af6258b7d0110872b72a53267bfe72715
treed74710a8aec466ccbecff6a259352658a8209a0b
parentc360df01c6c19959d2218cbad56d5b7c2ac7a476
crypto: img-hash - 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/img-hash.c