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,
case -EBUSY:
wait_for_completion(&tresult.completion);
INIT_COMPLETION(tresult.completion);
ret = tresult.err;
if (!ret)
break;
/* fall through */
......@@ -1079,6 +1080,7 @@ static int __test_skcipher(struct crypto_ablkcipher *tfm, int enc,
case -EBUSY:
wait_for_completion(&result.completion);
INIT_COMPLETION(result.completion);
ret = result.err;
if (!ret)
break;
/* 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