crypto: sun8i-ce - do not allocate memory when handling requests
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:12 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:17 +0000 (17:24 +0800)
commit22f7c2f8cfdac70a4414b66ce6ffa270fcd15aa7
treef3e86675b8ebfd15d0623e56276335f3b3b19679
parent282ee0716f618655d3b2a431498966a4bf797f4c
crypto: sun8i-ce - do not allocate memory when handling requests

Instead of allocate memory on each requests, it is easier to
pre-allocate buffer for IV.
This made error path easier.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h