From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 2/2] eal/malloc: fix RTE malloc element free Date: Mon, 09 Oct 2017 22:56:00 +0200 Message-ID: <2516029.gVLHQDShuA@xps> References: <20170823022926.169272-1-xuemingl@mellanox.com> <20170909073319.73174-2-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Xueming Li , Stephen Hemminger To: Sergio Gonzalez Monroy Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 89E311B247 for ; Mon, 9 Oct 2017 22:56:02 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/09/2017 14:06, Sergio Gonzalez Monroy: > On 09/09/2017 08:33, Xueming Li wrote: > > malloc_elem_free() is clearing(setting to 0) the trailer cookie when > > RTE_MALLOC_DEBUG is enabled. In case of joining free neighbor element, > > part of joined memory is not getting cleared due to missing the length > > of trailer cookie in the middle. > > > > This patch fixes calculation of free memory length to be cleared in > > malloc_elem_free() by including trailer cookie. > > > > Fixes: af75078fece3 ("first public release") > > > > Cc: Sergio Gonzalez Monroy > > Signed-off-by: Xueming Li > > Acked-by: Sergio Gonzalez Monroy Applied, thanks