projects
/
deliverable
/
linux.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
|
blame
|
history
diff --git
a/crypto/testmgr.c
b/crypto/testmgr.c
index 8ea0d3fcb580a63a506787a06dc48756bb64fcfd..769cc2a88040c5fe4f2dfb06ea7d8b7d984e8d17 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)
This page took
0.025404 seconds
and
5
git commands to generate.