[dpdk-dev] [PATCH v3 2/2] eal/malloc: fix RTE malloc element free

Sergio Gonzalez Monroy sergio.gonzalez.monroy at intel.com
Wed Sep 13 14:06:23 CEST 2017

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 <sergio.gonzalez.monroy at intel.com>
> Signed-off-by: Xueming Li <xuemingl at mellanox.com>
> ---

Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy at intel.com>

More information about the dev mailing list