From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69666A034F; Wed, 6 May 2020 12:39:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 495451D710; Wed, 6 May 2020 12:39:28 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 481E61D706; Wed, 6 May 2020 12:39:26 +0200 (CEST) IronPort-SDR: ouzpVaWLa428+hn3p3QaF3pC9ZENUuxsGVVcnRY2iqFIFpVjJc8D6j5y95ESpqwFfNrhmsfW46 mbzTlaR/xeog== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 03:39:25 -0700 IronPort-SDR: JucTA4n38GE9QoiL+nBrkSmowYUx3kQiS2Q95++7gHjf6C1eliQ77IzTLRA/NKczTooz5mx9sV gnUycILjh0ZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,358,1583222400"; d="scan'208";a="461393139" Received: from dpdk51.sh.intel.com ([10.67.111.82]) by fmsmga005.fm.intel.com with ESMTP; 06 May 2020 03:39:23 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: john.mcnamara@intel.com, xiaolong.ye@intel.com, dev@dpdk.org, Qi Zhang , stable@dpdk.org Date: Wed, 6 May 2020 18:43:15 +0800 Message-Id: <20200506104315.41600-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH] net/ice: fix uninitialized scalar variable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix coverity defect due to uninitialized scalar variable. Coverity issue: 357763 Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: stable@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_switch_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 179430136..93f4ebdf0 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -1500,6 +1500,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad, goto error; } + memset(&rule_info, 0, sizeof(rule_info)); rule_info.tun_type = tun_type; ret = ice_switch_check_action(actions, error); -- 2.13.6