From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76264A0093 for ; Thu, 10 Mar 2022 17:20:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A5E84113E; Thu, 10 Mar 2022 17:20:45 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 4F74C4113E for ; Thu, 10 Mar 2022 17:20:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646929243; x=1678465243; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ew2v5l0vX08pOeOowCD6fvaOxysr+l/7BsCA5JbtaFk=; b=iHqUQ94Pv9py8en/23S2jomW9PQ0zI1vVvv9z+b74zosVWGxLit8svft 0vJwcF2Xo6kNVh7k5NKEabocQlQ6CxLOlfYBRsyWx8INt3cONuHDTbvpu R+ZADr7h9SiRi5s3MICwUVR4LGlA0GpbQoTB04VYr35kBWvq10meqd+90 sHY6Lmhn8PexETX6ju75a9ASu6DQO0xGgKLHxCCG/PJO0LrwMyfKz1HkB P6cxgnkn8cZCamSKMxz/QSeru+aIi1Fc/ycdcpz+wEEwZAc6bxInK4V/k hjXNb7fqqLRBeAYD8AgEmzUCIgyq7u+MLmTWHk0dw9d1vu3qHGLznDpCo g==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="255238282" X-IronPort-AV: E=Sophos;i="5.90,171,1643702400"; d="scan'208";a="255238282" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 08:20:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,171,1643702400"; d="scan'208";a="633039200" Received: from silpixa00400636.ir.intel.com ([10.237.213.19]) by FMSMGA003.fm.intel.com with ESMTP; 10 Mar 2022 08:20:40 -0800 From: Pablo de Lara To: stable@dpdk.org, christian.ehrhardt@canonical.com Cc: Pablo de Lara , Yipeng Wang Subject: [PATCH 19.11] efd: fix uninitialized structure Date: Thu, 10 Mar 2022 16:20:30 +0000 Message-Id: <20220310162030.1401977-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit ecda2c40ac549f2ebd1e8be6bf0a96c4aba6bf36 ] Coverity flags that both elements of efd_online_group_entry are used uninitialized. This is OK because this structure is initially used for starting values, so any value is OK. Coverity ID: 375868 Fixes: 56b6ef874f80 ("efd: new Elastic Flow Distributor library") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara Acked-by: Yipeng Wang --- lib/librte_efd/rte_efd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c index 3fd1f1c97b..4cbe5380d1 100644 --- a/lib/librte_efd/rte_efd.c +++ b/lib/librte_efd/rte_efd.c @@ -1161,7 +1161,7 @@ rte_efd_update(struct rte_efd_table * const table, const unsigned int socket_id, { uint32_t chunk_id = 0, group_id = 0, bin_id = 0; uint8_t new_bin_choice = 0; - struct efd_online_group_entry entry; + struct efd_online_group_entry entry = {{0}}; int status = efd_compute_update(table, socket_id, key, value, &chunk_id, &group_id, &bin_id, -- 2.25.1