projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d158325
)
[CRYPTO] tcrypt: Add missing error check
author
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 18 May 2007 06:25:19 +0000
(16:25 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 18 May 2007 06:25:19 +0000
(16:25 +1000)
The return value of crypto_hash_final isn't checked in test_hash_cycles.
This patch corrects this. Thanks to Eric Sesterhenn for reporting this.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/tcrypt.c
b/crypto/tcrypt.c
index f0aed0106adb1cbf7068f93277857a8bd725e174..11f9359538166c37a5b152b515f13f2262622072 100644
(file)
--- a/
crypto/tcrypt.c
+++ b/
crypto/tcrypt.c
@@
-691,7
+691,7
@@
static int test_hash_cycles(struct hash_desc *desc, char *p, int blen,
if (ret)
goto out;
}
- crypto_hash_final(desc, out);
+
ret =
crypto_hash_final(desc, out);
if (ret)
goto out;
}