]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun4i-ss - do not allocate backup IV on requests
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 2 May 2022 20:19:13 +0000 (20:19 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 May 2022 09:24:17 +0000 (17:24 +0800)
commit5d2d9c54628202492df6185a0fc1c548a38965a3
treed98e1c6cd196921f65f7c14f43ec38f034e52df5
parentad79a5eefae44cb6d7e02dcc8dd571545f149897
crypto: sun4i-ss - do not allocate backup IV on requests

Instead of allocate memory on each requests, it is easier to
pre-allocate buffer for backup 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/sun4i-ss/sun4i-ss-cipher.c
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h