linux/drivers/crypto/amlogic
Colin Ian King a970429366 crypto: amlogic - ensure error variable err is set before returning it
Currently when the call to crypto_engine_alloc_init fails the error
return path returns an uninitialized value in the variable err. Fix
this by setting err to -ENOMEM.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 48fe583fe5 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-11-08 23:00:46 +08:00
..
amlogic-gxl-cipher.c crypto: amlogic - Use kmemdup in meson_aes_setkey() 2019-11-08 23:00:46 +08:00
amlogic-gxl-core.c crypto: amlogic - ensure error variable err is set before returning it 2019-11-08 23:00:46 +08:00
amlogic-gxl.h
Kconfig
Makefile