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 EA793A0350; Mon, 11 May 2020 05:07:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A63781D152; Mon, 11 May 2020 05:07:36 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 411021D151; Mon, 11 May 2020 05:07:35 +0200 (CEST) IronPort-SDR: Rnz3hVjG74qUYIl2kfvBN/xQyku6nP2SNnfemeM2t455LnbUB1N2UBsZ0JdWS71dvSfcVzDd2R 8pbffuX//voQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2020 20:07:34 -0700 IronPort-SDR: z17z9XdVaCeE1L6mIwEcAMyLMsPiWShpV4iTnPDVDXeRZoneDCDBQuTQJvdZtnYeXLpK/C8cDC sDh2UyM6dzRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,378,1583222400"; d="scan'208";a="252481489" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.116.183]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2020 20:07:32 -0700 Date: Mon, 11 May 2020 10:59:32 +0800 From: Ye Xiaolong To: Qi Zhang Cc: qiming.yang@intel.com, john.mcnamara@intel.com, dev@dpdk.org, stable@dpdk.org Message-ID: <20200511025932.GM75514@intel.com> References: <20200506104315.41600-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506104315.41600-1-qi.z.zhang@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [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" On 05/06, Qi Zhang wrote: >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 > Acked-by: Xiaolong Ye Applied to dpdk-next-net-intel, Thanks.