mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-04 16:51:34 +07:00
crypto: testmgr - Set err before proceeding
Report correct error in case of failure Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
6889621fd2
commit
57763f5ec7
@ -1941,6 +1941,7 @@ static int test_akcipher_one(struct crypto_akcipher *tfm,
|
|||||||
if (err)
|
if (err)
|
||||||
goto free_req;
|
goto free_req;
|
||||||
|
|
||||||
|
err = -ENOMEM;
|
||||||
out_len_max = crypto_akcipher_maxsize(tfm);
|
out_len_max = crypto_akcipher_maxsize(tfm);
|
||||||
outbuf_enc = kzalloc(out_len_max, GFP_KERNEL);
|
outbuf_enc = kzalloc(out_len_max, GFP_KERNEL);
|
||||||
if (!outbuf_enc)
|
if (!outbuf_enc)
|
||||||
|
Loading…
Reference in New Issue
Block a user