projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6889621
)
crypto: testmgr - Set err before proceeding
author
Salvatore Benedetto
<salvatore.benedetto@intel.com>
Mon, 4 Jul 2016 09:52:34 +0000
(10:52 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 5 Jul 2016 15:05:22 +0000
(23:05 +0800)
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>
crypto/testmgr.c
patch
|
blob
|
history
diff --git
a/crypto/testmgr.c
b/crypto/testmgr.c
index
8ea0d3f
..
769cc2a
100644
(file)
--- 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)