Commit 764dcf7b authored by Lennart Sorensen's avatar Lennart Sorensen Committed by Jiri Slaby

crypto: testmgr - fix 3.12.40 regression

commit ace3fc1e in 3.12.40 missed two
lines while pulling in commit 8a45ac12
from upstream.  This causes the tests to fail in some cases.

With the two missing lines added in, the tests pass again.

Tested with omap-aes, omap-sham and talitos.
Signed-off-by: default avatarLen Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent ca88808c
...@@ -334,6 +334,7 @@ static int __test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, ...@@ -334,6 +334,7 @@ static int __test_hash(struct crypto_ahash *tfm, struct hash_testvec *template,
case -EBUSY: case -EBUSY:
wait_for_completion(&tresult.completion); wait_for_completion(&tresult.completion);
INIT_COMPLETION(tresult.completion); INIT_COMPLETION(tresult.completion);
ret = tresult.err;
if (!ret) if (!ret)
break; break;
/* fall through */ /* fall through */
...@@ -1079,6 +1080,7 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc, ...@@ -1079,6 +1080,7 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc,
case -EBUSY: case -EBUSY:
wait_for_completion(&result.completion); wait_for_completion(&result.completion);
INIT_COMPLETION(result.completion); INIT_COMPLETION(result.completion);
ret = result.err;
if (!ret) if (!ret)
break; break;
/* fall through */ /* fall through */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment