Commit b64140c7 authored by Chen Ridong's avatar Chen Ridong Committed by Herbert Xu
Browse files

crypto: caam - add error check to caam_rsa_set_priv_key_form



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>
parent 35b2237f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment