From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2] enic: fix free function to actually free memory Date: Tue, 28 Jun 2016 12:09:35 +0100 Message-ID: <20160628110934.GC22860@bricha3-MOBL3> References: <20160623113608.GH5024@bricha3-MOBL3> <1466723698-3202-1-git-send-email-neescoba@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Nelson Escobar Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id AF25ADE3 for ; Tue, 28 Jun 2016 13:09:38 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1466723698-3202-1-git-send-email-neescoba@cisco.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 23, 2016 at 04:14:58PM -0700, Nelson Escobar wrote: > enic_alloc_consistent() allocated memory, but enic_free_consistent() > was an empty function, so allocated memory was never freed. > > This commit adds a list and lock to the enic structure to keep track > of the memzones allocated in enic_alloc_consistent(), and > enic_free_consistent() uses that information to properly free memory. > > Fixes: fefed3d1e62c ("enic: new driver") > > Signed-off-by: Nelson Escobar > Reviewed-by: John Daley Applied to dpdk-next-net/rel_16_07 /Bruce