linux/drivers/crypto/bcm
Chen Ridong 4ea3e3b761 crypto: bcm - add error check in the ahash_hmac_init function
[ Upstream commit 19630cf572 ]

The ahash_init functions may return fails. The ahash_hmac_init should
not return ok when ahash_init returns error. For an example, ahash_init
will return -ENOMEM when allocation memory is error.

Fixes: 9d12ba86f8 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-14 19:50:45 +01:00
..
cipher.c crypto: bcm - add error check in the ahash_hmac_init function 2024-12-14 19:50:45 +01:00
cipher.h crypto: bcm - Rename struct device_private to bcm_device_private 2021-01-14 17:10:26 +11:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
spu.c crypto: bcm - Fix a whole host of kernel-doc misdemeanours 2021-03-26 20:02:35 +11:00
spu.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
spu2.c crypto: bcm - Fix pointer arithmetic 2024-06-16 13:39:16 +02:00
spu2.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00
spum.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00
util.c crypto: bcm - Fix a whole host of kernel-doc misdemeanours 2021-03-26 20:02:35 +11:00
util.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00