]> 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)
commit2dd872de48ecf1f5b8045a27270136b889b08f49
tree83cf01182006fa2da64cd83e8249f2532def1887
parentb3d14eaed3c567faed56189c6e7c3ab49c612334
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