Message ID | 1424862845-18733-3-git-send-email-taras.kondratiuk@linaro.org |
---|---|
State | Accepted |
Commit | 46d3f78ae6843e5510fffd1aea5dd778641ad925 |
Headers | show
Return-Path: <patchwork-forward+bncBDVZ52OWS4KRBHW5W2TQKGQEWGN5ZMQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9A33420502 for <linaro@patches.linaro.org>; Wed, 25 Feb 2015 11:14:39 +0000 (UTC) Received: by labge10 with SMTP id ge10sf2327426lab.3 for <linaro@patches.linaro.org>; Wed, 25 Feb 2015 03:14:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Rfqpm5YpVUrUp+GilUgQiENDvQYzTVDyw6IDEkBVI0k=; b=Com5ogyJXvLQZtrcdEkW/zQnnCpphEgGoYHLdFu+vtvIayyEr+qd/YEqQRGpz1U/1Q XNfDz2WYbILSRuKJnBWy7+KlCZw2rp1gjdtf+DEHYA5fjAsWJG8ti4hnvtv+ZNWBcBFD Lpc6CGzQFHQQnIn+rX87KZjKmwjxgloF/jSfGN6jP6w1fcmsoWb76LuFfyO3SsAu2JPn oCQZHYGoKfyFQFRa21hiMNGRMKtFQafTy2VlWJSLgrO7SleH+F19MUpXDXJyJQ7n3LGW W7+eqFu4Ph4rE4qaP2auslKFSuy+0dRJSyvuWV9V3G7YrJrVqsW5UiE3R+Bg8+1Eanda TvoQ== X-Gm-Message-State: ALoCoQmuDhhcX03gY1stDvAIBcObrUfGP41XH+nJONkwc6hqfFAdfaZ/Cn95B8Ncw7xQfrJa0wan X-Received: by 10.180.81.34 with SMTP id w2mr431871wix.2.1424862878505; Wed, 25 Feb 2015 03:14:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.229 with SMTP id db5ls689828lac.49.gmail; Wed, 25 Feb 2015 03:14:38 -0800 (PST) X-Received: by 10.152.87.134 with SMTP id ay6mr2195796lab.75.1424862878334; Wed, 25 Feb 2015 03:14:38 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id n9si30580291lbp.165.2015.02.25.03.14.38 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 03:14:38 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbiz11 with SMTP id z11so3084880lbi.5 for <patchwork-forward@linaro.org>; Wed, 25 Feb 2015 03:14:38 -0800 (PST) X-Received: by 10.152.26.199 with SMTP id n7mr2243428lag.29.1424862878236; Wed, 25 Feb 2015 03:14:38 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2546894lbj; Wed, 25 Feb 2015 03:14:37 -0800 (PST) X-Received: by 10.140.132.197 with SMTP id 188mr6081124qhe.24.1424862876781; Wed, 25 Feb 2015 03:14:36 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id b13si41954228qac.129.2015.02.25.03.14.34 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 25 Feb 2015 03:14:36 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <lng-odp-bounces@lists.linaro.org>) id 1YQZvE-0003FH-E3; Wed, 25 Feb 2015 11:14:32 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <taras.kondratiuk@linaro.org>) id 1YQZv0-0003EQ-Pw for lng-odp@lists.linaro.org; Wed, 25 Feb 2015 11:14:18 +0000 Received: by lbiz12 with SMTP id z12so3013383lbi.11 for <lng-odp@lists.linaro.org>; Wed, 25 Feb 2015 03:14:12 -0800 (PST) X-Received: by 10.152.180.202 with SMTP id dq10mr2248338lac.74.1424862852899; Wed, 25 Feb 2015 03:14:12 -0800 (PST) Received: from localhost.localdomain ([80.77.38.170]) by mx.google.com with ESMTPSA id uf3sm8422201lbc.44.2015.02.25.03.14.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 03:14:12 -0800 (PST) From: Taras Kondratiuk <taras.kondratiuk@linaro.org> To: lng-odp@lists.linaro.org Date: Wed, 25 Feb 2015 13:14:04 +0200 Message-Id: <1424862845-18733-3-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424862845-18733-1-git-send-email-taras.kondratiuk@linaro.org> References: <1424862845-18733-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: crypto patch Subject: [lng-odp] [PATCH 2/3] validation: crypto: verify odp_crypto_operation() return code X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/test/validation/crypto/odp_crypto_test_async_inp.c b/test/validation/crypto/odp_crypto_test_async_inp.c index 53bb8d9..9f449e4 100644 --- a/test/validation/crypto/odp_crypto_test_async_inp.c +++ b/test/validation/crypto/odp_crypto_test_async_inp.c @@ -91,6 +91,10 @@ static void alg_test(enum odp_crypto_op op, } rc = odp_crypto_operation(&op_params, &posted, NULL); + if (rc < 0) { + odp_packet_free(pkt); + CU_FAIL_FATAL("Failed odp_crypto_operation()"); + } CU_ASSERT(posted); /* Poll completion queue for results */
It doesn't make sense to process crypto operation results if operation have failed. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- test/validation/crypto/odp_crypto_test_async_inp.c | 4 ++++ 1 file changed, 4 insertions(+)