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 9096945DA0; Mon, 25 Nov 2024 08:05:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6252F40A6F; 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 CB25540674; Mon, 25 Nov 2024 08:04:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732518300; x=1764054300; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MLou2rIlWz8fSsZCtxHnO+JSnJTiQbmrwsTrGwx7wz4=; b=NSZ1+Mk1M5P9G5DgrwJd5Ow++9zI/WOFhuKL+v2KkG9bQZyUDhURxRC5 G5nfeayqeeoOagYeOZ09ioJY+0AXpamLBx5M8PvKM5LQlnKE1h8v3GY4b eQoAeW2HXj4zRL0QCPd3UiIMHWJEokayKWbrUshLvRDq0FEY7woBg2/Pw dbiUDuuxJoMkDvldeOUDtoykVZCE17EgZuEuIb60j4162fJyCcBfZJYOF J3fsCoax+zRxDJM0mTH4ABZtEmlhSxD7i/wJF9X5TeRWhTJafSXIREtL9 6r1KrgUcsPRG2n5fzkvEcdzew625Wl9ZNj3gFeWprwBEvJjYIBEJnwVKu g==; X-CSE-ConnectionGUID: Xzwn7t0ZTWq/16tuE+6YRw== X-CSE-MsgGUID: QuXPgwpER1iai0L/4gG7qQ== X-IronPort-AV: E=McAfee;i="6700,10204,11266"; a="20198367" X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="20198367" 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:59 -0800 X-CSE-ConnectionGUID: ZPxzUju6S6i/o8GD2aRplg== X-CSE-MsgGUID: jxR4RWmCTX+JX5JmcN9hhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,182,1728975600"; d="scan'208";a="91357098" 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:56 -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 3/3] eventdev: fix uninitialized variable Date: Mon, 25 Nov 2024 14:47:55 +0800 Message-Id: <20241125064755.3943-4-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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch fixes the variable 'events' may be used uninitialized. Fixes: 3c89e8c42022 ("eventdev/dma: support adapter service function") Cc: stable@dpdk.org Signed-off-by: Wenwu Ma --- lib/eventdev/rte_event_dma_adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index ff2bc408c1..3c05fb615f 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -655,6 +655,7 @@ edma_ops_enqueue_burst(struct event_dma_adapter *adapter, struct rte_event_dma_a nb_ev = 0; retry = 0; nb_enqueued = 0; + memset(events, 0, sizeof(events)); num = RTE_MIN(num, DMA_BATCH_SIZE); for (i = 0; i < num; i++) { struct rte_event *ev = &events[nb_ev++]; -- 2.34.1