From patchwork Mon Feb 23 04:10:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 44887 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6959721554 for ; Mon, 23 Feb 2015 04:10:35 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b13sf15417780wgh.2 for ; Sun, 22 Feb 2015 20:10:34 -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=6HMpu1V5o8+utvdbYi4h7nLhow15/1OXx/Wesmz/aJ8=; b=TRo2jXzu99VG91VAG87sV+7zKOJ383w7llLaYUxUaXXTpFxhQOkAeOww4Dt5j+NSpB sg0OBvQGIr5OM/V2zUsVjLaQg3PjtZjWXjkQnQceD/fSlNyMJlCJhkz0oBknTEdeiVEu YOUkgQ6VfNTdD2AgLz9SPCdDdgkQmK3VKwQpiA96tRDy4ZtXOEVuG6WBIFJjrXz4lSPn JdbBvpYAWobonGlBCAwNpsNcQNSQ5qjUo8ENqi6a8JBkeWExCpmULpPkP68HqCtFbMAE tvHm+tj63oyINXykssO5TrwYsOolJCLJK7/9iNyApOQtkCHvQd65JEf6Vv0d5bHWU222 P7nw== X-Gm-Message-State: ALoCoQm9blBrur7uiSjlpPsP4wdDIPwHlzeuLj5WIAcr7awoKqiKhe9DsfZjwQ7HoRx89R40uk78 X-Received: by 10.194.221.65 with SMTP id qc1mr978039wjc.7.1424664634299; Sun, 22 Feb 2015 20:10:34 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.198.231 with SMTP id jf7ls495384lac.92.gmail; Sun, 22 Feb 2015 20:10:34 -0800 (PST) X-Received: by 10.152.8.229 with SMTP id u5mr8049346laa.4.1424664634004; Sun, 22 Feb 2015 20:10:34 -0800 (PST) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id w2si2107405lal.38.2015.02.22.20.10.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 20:10:33 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbdu10 with SMTP id u10so16115683lbd.7 for ; Sun, 22 Feb 2015 20:10:33 -0800 (PST) X-Received: by 10.152.8.33 with SMTP id o1mr8274916laa.56.1424664633698; Sun, 22 Feb 2015 20:10:33 -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 h5csp1022481lbj; Sun, 22 Feb 2015 20:10:33 -0800 (PST) X-Received: by 10.140.150.15 with SMTP id 15mr21224299qhw.46.1424664632457; Sun, 22 Feb 2015 20:10:32 -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 j3si6348011qao.67.2015.02.22.20.10.28 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 22 Feb 2015 20:10:32 -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 1YPkLh-0004AZ-9b; Mon, 23 Feb 2015 04:10:25 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YPkLb-0004AS-Qt for lng-odp@lists.linaro.org; Mon, 23 Feb 2015 04:10:19 +0000 Received: by pabrd3 with SMTP id rd3so24322375pab.4 for ; Sun, 22 Feb 2015 20:10:14 -0800 (PST) X-Received: by 10.68.192.101 with SMTP id hf5mr15453119pbc.117.1424664614403; Sun, 22 Feb 2015 20:10:14 -0800 (PST) Received: from manoharan-Vostro-2520.domain.name ([117.199.142.236]) by mx.google.com with ESMTPSA id mm9sm33839385pbc.76.2015.02.22.20.10.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Feb 2015 20:10:13 -0800 (PST) From: bala.manoharan@linaro.org To: lng-odp@lists.linaro.org Date: Mon, 23 Feb 2015 09:40:03 +0530 Message-Id: <1424664603-29684-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 uninitialized scalar variable 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.217.175 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 Fixes uninitialized scalar variable qos_tbl in configure_cos_with_l2_priority() function reported by Coverity. https://bugs.linaro.org/show_bug.cgi?id=1143 Signed-off-by: Balasubramanian Manoharan Reviewed-by: Bill Fischofer --- test/validation/classification/odp_classification_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c index 564455c..4807584 100644 --- a/test/validation/classification/odp_classification_tests.c +++ b/test/validation/classification/odp_classification_tests.c @@ -555,6 +555,10 @@ void configure_cos_with_l2_priority(void) int i; odp_queue_param_t qparam; + /** Initialize scalar variable qos_tbl **/ + for (i = 0; i < CLS_L2_QOS_MAX; i++) + qos_tbl[i] = 0; + qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; for (i = 0; i < num_qos; i++) {