Skip to content
Snippets Groups Projects
Commit dead96e1 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 b64140c7 ]

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 a5686029
No related branches found
No related tags found
No related merge requests found
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