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 4010CA0C43; Wed, 20 Oct 2021 22:20:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0B3C40150; Wed, 20 Oct 2021 22:20:37 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5842740142 for ; Wed, 20 Oct 2021 22:20:36 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10143"; a="289719946" X-IronPort-AV: E=Sophos;i="5.87,167,1631602800"; d="scan'208";a="289719946" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 13:20:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,167,1631602800"; d="scan'208";a="494804409" Received: from txandevlnx321.an.intel.com ([10.123.117.43]) by orsmga008.jf.intel.com with ESMTP; 20 Oct 2021 13:20:34 -0700 From: Erik Gabriel Carrillo To: jerinj@marvell.com, pbhagavatula@marvell.com Cc: dev@dpdk.org Date: Wed, 20 Oct 2021 15:20:21 -0500 Message-Id: <20211020202021.1205135-1-erik.g.carrillo@intel.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] eventdev: fix free of adapters storage 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 Sender: "dev" Fix a typo that can cause the hugepage memory that backs the adapters array to be freed unexpectedly. Fixes: e9caa6a09a "eventdev: move timer adapters memory to hugepage") Signed-off-by: Erik Gabriel Carrillo --- lib/eventdev/rte_event_timer_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c index 86b6c3fc6f..0e21b7c475 100644 --- a/lib/eventdev/rte_event_timer_adapter.c +++ b/lib/eventdev/rte_event_timer_adapter.c @@ -407,7 +407,7 @@ rte_event_timer_adapter_free(struct rte_event_timer_adapter *adapter) ret = 0; for (i = 0; i < RTE_EVENT_TIMER_ADAPTER_NUM_MAX; i++) if (adapters[i].allocated) - ret = adapter[i].allocated; + ret = adapters[i].allocated; if (!ret) { rte_free(adapters); -- 2.23.0