浏览代码

[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>
Herbert Xu 18 年之前
父节点
当前提交
29059d12e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crypto/tcrypt.c

+ 1 - 1
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;
 	}