]> 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)
commit0c00bb21ef7ef25081d6918cb7563af9d0e55335
treed98e1c6cd196921f65f7c14f43ec38f034e52df5
parentc477fef0d7e203763b9e2d9f6b650cf6e67ac71a
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