commit | b64140c74e954f1db6eae5548ca3a1f41b6fad79 | [log] [tgz] |
---|---|---|
author | Chen Ridong <chenridong@huawei.com> | Mon Nov 04 12:15:11 2024 +0000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 15 19:52:51 2024 +0800 |
tree | dfe974038f7bf4c2fc301d2ae7659f8e81aa4c7f | |
parent | 35b2237f27c33c9d84733e03d84d79b6a6062715 [diff] |
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: 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>