Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29059d12 authored by Herbert Xu's avatar Herbert Xu
Browse files

[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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d158325e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}