Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965890AbbD0Vlh (ORCPT ); Mon, 27 Apr 2015 17:41:37 -0400 Received: from ip4-83-240-67-251.cust.nbox.cz ([83.240.67.251]:49684 "EHLO ip4-83-240-18-248.cust.nbox.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753321AbbD0Vc6 (ORCPT ); Mon, 27 Apr 2015 17:32:58 -0400 From: Jiri Slaby To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lennart Sorensen , Jiri Slaby Subject: [PATCH 3.12 64/83] crypto: testmgr - fix 3.12.40 regression Date: Mon, 27 Apr 2015 23:32:35 +0200 Message-Id: <764dcf7b83098c83fd366eade51a59d1f54ce589.1430159990.git.jslaby@suse.cz> X-Mailer: git-send-email 2.3.5 In-Reply-To: <3426bb8de3a655aa6668e92ee92eb35f0db86582.1430159990.git.jslaby@suse.cz> References: <3426bb8de3a655aa6668e92ee92eb35f0db86582.1430159990.git.jslaby@suse.cz> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1565 Lines: 48 From: Lennart Sorensen 3.12-stable review patch. If anyone has any objections, please let me know. =============== commit ace3fc1e3f3a85ec705805146247231b11e1babe in 3.12.40 missed two lines while pulling in commit 8a45ac12ec5b6ee67f8559c78ae11d9af8b821ee 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: Len Sorensen Signed-off-by: Jiri Slaby --- crypto/testmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 317c31f0b262..93e508c39e3b 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -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 */ -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/