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 29EE945DA1 for ; Mon, 25 Nov 2024 08:05:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CF88406FF; Mon, 25 Nov 2024 08:05:02 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id D8F6340144; Mon, 25 Nov 2024 08:04:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732518297; x=1764054297; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yg/N7L3FADMhfDJIgwfiZXo4g4H1lqB7w9UnukktVMY=; b=adn4t9qD98N3d7D65b4Klaj8HZevWWOXRa2m/GP0SabaFbRsF92abQfj tR7aKRTDMnujd2rtng6+7qr1XoEPiVZxJ/V2hpAprvkGIcosX8jJiyS7D 9qCZHBxnpFUkQNExenj4Z/Oa5sZHyyaE7lxX3v5mSggAzZksGHXe9kSFw Vs2ZzZjVsLAugEVgZ55Ziw0/vHhfnTFC8NbZn+wTFJuM+1DpsQa3GAtq2 0ozViUpkD4I2kg7lHKQPvSCdH3Gym5R+GSJwsIZ6Pc7aQF88M6sv6rjJz 1gcFempgDgwOKFsMM1BY32ytva9HctV1DfeEJ2BKyh6zOybkrN1ksVzQX Q==; X-CSE-ConnectionGUID: VJwlHzLVQD2AZ2SYL14yMA== X-CSE-MsgGUID: bxeg3OovT1uyX2hc58LrOA== X-IronPort-AV: E=McAfee;i="6700,10204,11266"; a="20198364" X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="20198364" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2024 23:04:57 -0800 X-CSE-ConnectionGUID: cK87B0xiQ1+/HEmiNX70gg== X-CSE-MsgGUID: SepDpYofR3yv4BZn7dHiMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="91357087" Received: from unknown (HELO localhost.localdomain) ([10.239.252.55]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2024 23:04:54 -0800 From: Wenwu Ma To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, amitprakashs@marvell.com, abhinandan.gujjar@intel.com, dev@dpdk.org, stable@dpdk.org Cc: tingtingx.liao@intel.com, Wenwu Ma Subject: [PATCH 2/3] eventdev: fix uninitialized variable Date: Mon, 25 Nov 2024 14:47:54 +0800 Message-Id: <20241125064755.3943-3-wenwux.ma@intel.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20241125064755.3943-1-wenwux.ma@intel.com> References: <20241125064755.3943-1-wenwux.ma@intel.com> 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 'events' may be used uninitialized. Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") Cc: stable@dpdk.org Signed-off-by: Wenwu Ma --- lib/eventdev/rte_event_crypto_adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index 939ca1cad9..1ca839510b 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -685,6 +685,7 @@ eca_ops_enqueue_burst(struct event_crypto_adapter *adapter, nb_ev = 0; retry = 0; nb_enqueued = 0; + memset(events, 0, sizeof(events)); num = RTE_MIN(num, BATCH_SIZE); for (i = 0; i < num; i++) { struct rte_event *ev = &events[nb_ev++]; -- 2.34.1