Skip to content

Commit

Permalink
[CRYPTO] tcrypt: Add missing error check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
herbertx committed May 18, 2007
1 parent d158325 commit 29059d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29059d1

Please sign in to comment.