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 E611645E8A for ; Fri, 13 Dec 2024 07:10:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC0CA4003C; Fri, 13 Dec 2024 07:10:20 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by mails.dpdk.org (Postfix) with ESMTP id DC0114003C for ; Fri, 13 Dec 2024 07:10:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734070219; x=1765606219; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HBibNgezNMBVHVzgtOxfuTAanfq8LVtBdS3w9EmLPnM=; b=kTHGcGD+gezhgZeN7bCjkvY/xQz6nxvZtgTAEfx42poNty+5Hoa/zmHy sYzE0i518eAl3mKlrO6i5/VrKDtoE6Na1+kcR0zFAYhVCIpxI1rrWMENJ dkdUWAFePqgLbFyI1wEvnRDZT3YnCDMWOh0i7vg+pyy6KSXwSbZXx0CtY z5GhazD0IS/UfeJyru2h9q3ADsturds555SDBVJvwfHGSK0i3yU5tehBz mvPLBUGA0raGyW6jJVqxe4d+hYIkROM8GiYqX00JX9+k1arZPEr5x3pu8 VUDSQSlTEsZTfj5cwL72mYUUa03HMi4Y7O53KO0NQ1N+bE10agwj5we8X g==; X-CSE-ConnectionGUID: hjTVEvfjQP2hexI4xRq5BQ== X-CSE-MsgGUID: ZvzHXu8PQNGLGMwwRkIMfg== X-IronPort-AV: E=McAfee;i="6700,10204,11284"; a="45124848" X-IronPort-AV: E=Sophos;i="6.12,230,1728975600"; d="scan'208";a="45124848" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 22:10:17 -0800 X-CSE-ConnectionGUID: sp2eyjnxTAmZ7iNBhAL7Wg== X-CSE-MsgGUID: s9GJLVVvTLG+yoXH8Ovh6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="97238283" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 22:10:15 -0800 From: Kaiwen Deng To: stable@dpdk.org Cc: Kaiwen Deng , Bruce Richardson , Jingjing Wu , Beilei Xing , Zhichao Zeng , Qi Zhang Subject: [PATCH v22.11] net/iavf: fix uninitialized variable Date: Fri, 13 Dec 2024 12:49:53 +0800 Message-Id: <20241213044954.3132192-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.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 This patch fixes the variable 'descs_bh' may be used uninitialized. Fixes: 6ad2944f4e82 ("net/iavf: support Rx timestamp offload on AVX2") Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c index 3f1d5e2ce8..199f5f5ccd 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_sse.c +++ b/drivers/net/iavf/iavf_rxtx_vec_sse.c @@ -825,7 +825,7 @@ _recv_raw_pkts_vec_flex_rxd(struct iavf_rx_queue *rxq, rxdp += IAVF_VPMD_DESCS_PER_LOOP) { __m128i descs[IAVF_VPMD_DESCS_PER_LOOP]; #ifndef RTE_LIBRTE_IAVF_16BYTE_RX_DESC - __m128i descs_bh[IAVF_VPMD_DESCS_PER_LOOP]; + __m128i descs_bh[IAVF_VPMD_DESCS_PER_LOOP] = {_mm_setzero_si128()}; #endif __m128i pkt_mb0, pkt_mb1, pkt_mb2, pkt_mb3; __m128i staterr, sterr_tmp1, sterr_tmp2; -- 2.34.1