summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-05-18 08:25:19 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2007-05-18 08:25:19 +0200
commit29059d12e0c7f349aca6993acac20c5efbe13b81 (patch)
treea147b947e8b484190ddc39bafefb421fea16e452 /crypto/tcrypt.c
parent[CRYPTO] padlock: Make CRYPTO_DEV_PADLOCK a tristate again (diff)
downloadlinux-29059d12e0c7f349aca6993acac20c5efbe13b81.tar.xz
linux-29059d12e0c7f349aca6993acac20c5efbe13b81.zip
[CRYPTO] tcrypt: Add missing error check
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>
Diffstat (limited to '')
-rw-r--r--crypto/tcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f0aed0106adb..11f935953816 100644
--- 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;
}