Skip to content
Snippets Groups Projects
Commit 2eb0211d authored by Chen Ridong's avatar Chen Ridong Committed by Greg Kroah-Hartman
Browse files

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: 52e26d77 ("crypto: caam - add support for RSA key form 2")
Signed-off-by: default avatarChen Ridong <chenridong@huawei.com>
Reviewed-by: default avatarGaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 526c1321
No related branches found
No related tags found
1 merge request!176🤖 Sync Bot: Update v6.12-ktn to Latest Stable Kernel (v6.12.4)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment