Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=29059d12e0c7f349aca6993acac20c5efbe13b81
Commit:     29059d12e0c7f349aca6993acac20c5efbe13b81
Parent:     d158325e407864793c5b0fbc85c74702753333b9
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Fri May 18 16:25:19 2007 +1000
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Fri May 18 16:25:19 2007 +1000

    [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 <[EMAIL PROTECTED]>
---
 crypto/tcrypt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f0aed01..11f9359 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;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to