kernel_samsung_a53x/drivers/crypto/caam
Chen Ridong 7b50c02b7f crypto: caam - add error check to caam_rsa_set_priv_key_form
[ Upstream commit b64140c74e954f1db6eae5548ca3a1f41b6fad79 ]

The caam_rsa_set_priv_key_form did not check for memory allocation errors.
Add the checks to the caam_rsa_set_priv_key_form functions.

Fixes: 52e26d77b8b3 ("crypto: caam - add support for RSA key form 2")
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:00 +01:00
..
caamalg.c crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2024-11-18 11:43:03 +01:00
caamalg_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_qi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_qi2.c crypto: caam/qi2 - fix Chacha20 + Poly1305 self test failure 2024-11-18 11:43:03 +01:00
caamalg_qi2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caampkc.c crypto: caam - add error check to caam_rsa_set_priv_key_form 2024-12-17 13:24:00 +01:00
caampkc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamrng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
desc_constr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci-debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intern.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
key_gen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
key_gen.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pdb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkc_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qi.c crypto: caam - Fix the pointer passed to caam_qi_shutdown() 2024-12-17 13:23:59 +01:00
qi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_qm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_qm2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_sec4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00