diff options
author | Salvatore Benedetto <salvatore.benedetto@intel.com> | 2016-07-04 11:52:34 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-05 17:05:22 +0200 |
commit | 57763f5ec7488d5864e4d6ec9d4197b8f52214bd (patch) | |
tree | 83f149aaea8582e6439961d868afeae20760b022 /crypto/testmgr.c | |
parent | crypto: qat - Switch to new rsa_helper functions (diff) | |
download | linux-57763f5ec7488d5864e4d6ec9d4197b8f52214bd.tar.xz linux-57763f5ec7488d5864e4d6ec9d4197b8f52214bd.zip |
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>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 8ea0d3fcb580..769cc2a88040 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1941,6 +1941,7 @@ static int test_akcipher_one(struct crypto_akcipher *tfm, if (err) goto free_req; + err = -ENOMEM; out_len_max = crypto_akcipher_maxsize(tfm); outbuf_enc = kzalloc(out_len_max, GFP_KERNEL); if (!outbuf_enc) |