From patchwork Mon Feb 23 03:27:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 44886 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A7A3521554 for ; Mon, 23 Feb 2015 03:28:03 +0000 (UTC) Received: by lbiw7 with SMTP id w7sf10335168lbi.0 for ; Sun, 22 Feb 2015 19:28:02 -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: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=7Tnone4bDpj9hsc29hTv12IGfI8EhWykzEb+V6gB6fk=; b=mbRa7Gv2RxrQW5zmlzs0527I8X4HhCwtYFXJfpZHthcRucXKxexnVstgliX05OUuvU 4+73iwsLLzkDSzfg7RC5ZnJMAahJq/LT6SDpw9rEcSvUmKzFc3EC8FV/iZynq25WTdDN vM0/9CrEOa2c75HEqdZinC5QUowZlgAN0ljpWvKeYqxRT1eHii7lkCjvBBDeP4rcBjnW twRIXlHRsjVR6OTWtpkuoOQvHMB5+Th96K/q9niVKm1byAqqcxEs2HkZt2eQY0Qo7HZJ cxYSU/Lo6ubbyizRhwNpsY2YIPVztUP/dO9mwJo91A2eeT0YEwTRG29fn2KEH/gf3wKg Y2uQ== X-Gm-Message-State: ALoCoQkNRcyzRL4Fa2+pQorDNHdB90KrYJvaAzVre74j01IGRwkPMYkA0V+M97QoxUjwPzcm3ffw X-Received: by 10.152.43.166 with SMTP id x6mr966835lal.3.1424662082649; Sun, 22 Feb 2015 19:28:02 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.42 with SMTP id y10ls488263lag.71.gmail; Sun, 22 Feb 2015 19:28:02 -0800 (PST) X-Received: by 10.112.126.130 with SMTP id my2mr8044906lbb.55.1424662082240; Sun, 22 Feb 2015 19:28:02 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id q6si4218558lah.21.2015.02.22.19.28.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 19:28:01 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labms9 with SMTP id ms9so15897701lab.10 for ; Sun, 22 Feb 2015 19:28:01 -0800 (PST) X-Received: by 10.152.115.136 with SMTP id jo8mr4117452lab.32.1424662081884; Sun, 22 Feb 2015 19:28:01 -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 h5csp1009499lbj; Sun, 22 Feb 2015 19:28:01 -0800 (PST) X-Received: by 10.140.234.17 with SMTP id f17mr21614234qhc.64.1424662080601; Sun, 22 Feb 2015 19:28:00 -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 v6si7188945qhd.15.2015.02.22.19.27.58 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 22 Feb 2015 19:28:00 -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 ) id 1YPjgZ-00027Z-4m; Mon, 23 Feb 2015 03:27:55 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YPjgT-00027U-3h for lng-odp@lists.linaro.org; Mon, 23 Feb 2015 03:27:49 +0000 Received: by padfa1 with SMTP id fa1so24152498pad.2 for ; Sun, 22 Feb 2015 19:27:43 -0800 (PST) X-Received: by 10.70.92.164 with SMTP id cn4mr15325101pdb.110.1424662063594; Sun, 22 Feb 2015 19:27:43 -0800 (PST) Received: from manoharan-Vostro-2520.domain.name ([117.199.142.236]) by mx.google.com with ESMTPSA id g2sm29645660pbw.37.2015.02.22.19.27.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Feb 2015 19:27:42 -0800 (PST) From: bala.manoharan@linaro.org To: lng-odp@lists.linaro.org Date: Mon, 23 Feb 2015 08:57:27 +0530 Message-Id: <1424662047-22687-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 2.0.1.472.g6f92e5f X-Topics: Classification patch Subject: [lng-odp] [PATCH v1] validation: classification: fix unchecked return value X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bala.manoharan@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.215.46 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 From: Balasubramanian Manoharan Fix for return value checking of odp_pool_destroy() function reported by Coverity. https://bugs.linaro.org/show_bug.cgi?id=1142 Signed-off-by: Balasubramanian Manoharan Reviewed-by: Bill Fischofer --- test/validation/classification/odp_classification_tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index 564455c..a00477f 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -288,7 +288,8 @@ int classification_tests_init(void) return 0; error_pktio_loop: - odp_pool_destroy(pool_default); + if (0 > odp_pool_destroy(pool_default)) + return -1; error_pool_default: return -1;