diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-05-18 16:25:19 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-05-18 16:25:19 +1000 |
commit | 2a12a7338b33e150926b2615f571604cac1439ca (patch) | |
tree | 963762eb7f09cdd2b112d602206b6aa8f55ac332 | |
parent | c702cc098d690ac74e182fb568c92d48820a1e0f (diff) | |
download | linux-crypto-2a12a7338b33e150926b2615f571604cac1439ca.tar.gz linux-crypto-2a12a7338b33e150926b2615f571604cac1439ca.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>
-rw-r--r-- | crypto/tcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f0aed010..11f93595 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; } |