From patchwork Mon Dec 14 12:00:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 58345 Delivered-To: patch@linaro.org Received: by 10.112.73.68 with SMTP id j4csp1422304lbv; Mon, 14 Dec 2015 04:01:33 -0800 (PST) X-Received: by 10.140.27.238 with SMTP id 101mr41404258qgx.4.1450094492922; Mon, 14 Dec 2015 04:01:32 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o79si34648871qkl.17.2015.12.14.04.01.32; Mon, 14 Dec 2015 04:01:32 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=temperror (no key for signature) header.i=@linaro.org; dkim=temperror (no key for signature) header.i=@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 3D97061CB2; Mon, 14 Dec 2015 12:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=lists; t=1450094492; bh=5/2LwUfykbcHHJx0EzPATZfa/kBcG/C7QDUYRuBN8ao=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=U2mku60riJR4cRRpv/2GmGjs14frCB5YzgQdAgzhykYwwwYh/Ql7ihVsLVSwdw8aQ ZzVFl1nqqNzmp5B6EpTPmxdmF5oQJ5ayRka0RzY/XWvvARHbS5KnjC3CLAjoRtj2K8 O9J/7ouu6rn3w/ho4syLBfCPX02acuQuHbH9uGww= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id ABA2E61C9E; Mon, 14 Dec 2015 12:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=lists; t=1450094487; bh=5/2LwUfykbcHHJx0EzPATZfa/kBcG/C7QDUYRuBN8ao=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=GROwwNL3Yc66KSi+KjsRPIWcJgce6kkIYI5RQVrWLgd0BDs+5lGHHf8OBbSVrX0X7 /vytElp6CiiusxyVp0KVI2wx0dFi90bTP+aM8GugBnI7YXueOlO4HdGSFXXkvkcVFz 5I/PksYSpk76rfdYjMWjjOZsBBxFNJCTfDo8O91Q= X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id ED92861CA5; Mon, 14 Dec 2015 12:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=lists; t=1450094485; bh=BLFAn5cmz0lUMBWjpchWteTZl2lr3oIUmhASRzbpDL4=; h=From:To:Cc:Subject:Date:From; b=BkZ7T0wWUv8uL4MAj9iZhXXP59gnCEyV+czvkAh5nbeCY0hUlXYVHbvOwKqbc9qhK WmWCGmllbOaFsP61etytcf1oxGf8dbeX3hC1FpcRvzwgOwdw46OglrtVs3l8zXlEl2 fsgYLJJ3Pj1G2GncfTiDbq/ZkXXWMjtiQBGpogyY= Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by lists.linaro.org (Postfix) with ESMTPS id 646186194A for ; Mon, 14 Dec 2015 12:00:44 +0000 (UTC) Received: by pacwq6 with SMTP id wq6so102779625pac.1 for ; Mon, 14 Dec 2015 04:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=BLFAn5cmz0lUMBWjpchWteTZl2lr3oIUmhASRzbpDL4=; b=uqV/ZWlnhnJ9K1Jwrr3yJKlVqDHOKZRYbDzj7h9kWE/hIhBgWL2UBjz2KvPx0mCEgT 7F2XLBFv292+2+z/obBJvukqnCiMYwCwr4FntnqlSFT2XrWyyNmYAPx58L5cStjuZZhu itGXVmrc/yvh4lkjkZ6eiV2jiRr2R13XlzYjUEUqf2BK+mZIvZ7a9vXCfAV5xMGTqd02 dShW41f5dY0nKJnjqvhTEYeBigijvfiYwbNvqG7t/VVSGL9i56kv9wfPtj+m8esxIjkk KTPMI6ZpLzgd8sZEbMHhBdHwgw8St2vAyAQPWcgn3z1Mlvr7FDFsdSrue61p4SZPKv6G rjyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BLFAn5cmz0lUMBWjpchWteTZl2lr3oIUmhASRzbpDL4=; b=GbFEoJvdyz+2VAQOkNbzzmDg5LEdvZQTwW1Y5mHb4O15CdpV38jrl7iNZc66aBAdNC x+64TWkyVR3NG+GA5hL8RH8/n6HNBcYM13n2MOfuKIEMrENFymqG3KxhOPhF3OgV4hWw L9NFX/AceR0hucBMPriwQlpc2lBi5VhMN8GfKfif2oeTIKC34cMDYVXdNVuWfmgeeOTJ +cmH8gcWMba1wgwrYC0r+FahDKE+9HIRl7/SzGwsDYHMCyWJNtDip+mdrKQw3T5TjvU1 txas0vSxRQzAVqRICPJQqpmTNAcMzFLSuXM5kpZQ6r5qxLNyCKfEfrGM7/WNVi6Od50H 4IXg== X-Gm-Message-State: ALoCoQkgidcKO6XT6gCLqI4S8LuDx++7EZRbXRUjFsZMlT8kW16b6tVTtghWvjVzNWEJ/gtzrG2KXMIMsjkKHpzWtwjMhtSDfg== X-Received: by 10.66.229.2 with SMTP id sm2mr45223603pac.28.1450094443637; Mon, 14 Dec 2015 04:00:43 -0800 (PST) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id h10sm42565084pat.7.2015.12.14.04.00.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Dec 2015 04:00:43 -0800 (PST) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Mon, 14 Dec 2015 17:30:31 +0530 Message-Id: <1450094431-18859-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: Classification patch Subject: [lng-odp] [PATCH] validation: classification: check return value of pktio stop X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Fixes https://bugs.linaro.org/show_bug.cgi?id=1937 Signed-off-by: Balasubramanian Manoharan Reviewed-by: Bill Fischofer --- test/validation/classification/odp_classification_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/validation/classification/odp_classification_common.c b/test/validation/classification/odp_classification_common.c index 665e67c..a56c017 100644 --- a/test/validation/classification/odp_classification_common.c +++ b/test/validation/classification/odp_classification_common.c @@ -29,7 +29,8 @@ int destroy_inq(odp_pktio_t pktio) return -1; } - odp_pktio_stop(pktio); + if (0 > odp_pktio_stop(pktio)) + return -1; if (0 > odp_pktio_inq_remdef(pktio)) return -1;