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 986CFA00C2 for ; Thu, 5 Jan 2023 22:49:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8632A42D21; Thu, 5 Jan 2023 22:49:44 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C2ED34067C; Thu, 5 Jan 2023 22:49:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672955381; x=1704491381; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PJM2ousEbQo0tnh9EDfOr5wE5MeGE9fSxKAFyg9lbUQ=; b=Hr+Yn0Zhqkg8jwX8jrKQmaTkAqcKZw5nV5gQaIEck6ZlWMe+uAit4A71 fNMcLlS+BwEwe7UA+ikUw4HA9WBJ7e5owavxTuzfuMLjIaeD6fxTt4cmz JN51Zh188/D56fvUHwCK5sfj1zaZGadi7ARydtnYqr8ynRkM7asqPbsKT bMY3qUGMQUGrI5GPlJVL4WpA39/pQTFpVWTTEqm1imjxRqu1g82snTobM FQrC1C2u3QMvtjwG5mvZn22b65ImF4xW2vkfUBgCjcpmMshZ/cOAMEIkB MS/2ApRDlF7wzTpGTdst93f2cLqKj6EyPlrjOYw8yxmdFr22mEioQS3WV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="302700459" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="302700459" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 13:49:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="686264706" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="686264706" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 05 Jan 2023 13:49:35 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v2 1/7] baseband/acc: acc100 free harq layout pointer Date: Thu, 5 Jan 2023 21:44:37 -0800 Message-Id: <20230106054443.199473-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230106054443.199473-1-hernan.vargas@intel.com> References: <20230106054443.199473-1-hernan.vargas@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 Explicitly call rte_free for harq_layout pointer in dev_close function to prevent memory leak. Fixes: ba2262fe16c ("baseband/acc100: fix close cleanup") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index ba8247d47e..0177a9e0ea 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -622,6 +622,7 @@ acc100_dev_close(struct rte_bbdev *dev) rte_free(d->tail_ptrs); rte_free(d->info_ring); rte_free(d->sw_rings_base); + rte_free(d->harq_layout); d->sw_rings_base = NULL; d->tail_ptrs = NULL; d->info_ring = NULL; -- 2.37.1