]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - do not allocate memory when handling hash requests
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:19 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:18 +0000 (17:24 +0800)
commit8fcfe2ced02cc725a57b4c1991dffad1ee312990
tree83cf01182006fa2da64cd83e8249f2532def1887
parent38d08ad3a45cdc8281a2f650e026edc24252e2af
crypto: sun8i-ss - do not allocate memory when handling hash requests

Instead of allocate memory on each requests, it is easier to
pre-allocate buffers.
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-ss/sun8i-ss-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h