From: Herbert Xu Date: Fri, 18 May 2007 06:25:19 +0000 (+1000) Subject: [CRYPTO] tcrypt: Add missing error check X-Git-Tag: v2.6.22-rc2~3^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=29059d12e0c7f349aca6993acac20c5efbe13b81;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f0aed0106ad..11f93595381 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; }