crypto: sa2ul - Use proper helpers to setup request
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 26 Mar 2025 10:05:38 +0000 (18:05 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:26 +0000 (13:22 +0800)
commit26013326a6bad4f6c5a8f367026867b77c5e1ff2
treec4452960c3b5d7670d4f9eac5995c6d2cf4936e8
parentf7b86e0e75bc234751cb7a82d888083a57ef28b2
crypto: sa2ul - Use proper helpers to setup request

Rather than setting up a request by hand, use the correct API helpers
to setup the new request.  This is because the API helpers will setup
chaining.

Also change the fallback allocation to explicitly request for a
sync algorithm as this driver will crash if given an async one.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c