linux-yocto/drivers/crypto/inside-secure
Li Huafei 494eb595a7 crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init()
[ Upstream commit a10549fcce ]

The commit 320406cb60 ("crypto: inside-secure - Replace generic aes
with libaes") replaced crypto_alloc_cipher() with kmalloc(), but did not
modify the handling of the return value. When kmalloc() returns NULL,
PTR_ERR_OR_ZERO(NULL) returns 0, but in fact, the memory allocation has
failed, and -ENOMEM should be returned.

Fixes: 320406cb60 ("crypto: inside-secure - Replace generic aes with libaes")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-05 14:01:19 +01:00
..
Makefile
safexcel_cipher.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
safexcel_hash.c crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init() 2024-12-05 14:01:19 +01:00
safexcel_ring.c
safexcel.c crypto: safexcel - Remove cfb and ofb 2023-12-08 11:59:46 +08:00
safexcel.h crypto: safexcel - Remove unused declaration safexcel_ring_first_rptr() 2024-08-30 18:22:30 +08:00