[dpdk-dev] [PATCH] malloc: don't skip pad on free

Thomas Monjalon thomas at monjalon.net
Fri Jul 20 11:27:43 CEST 2018


19/07/2018 18:37, Andrew Rybchenko:
> On 19.07.2018 12:42, Anatoly Burakov wrote:
> > Previously, we were skipping erasing pad because we were
> > expecting it to be freed when we were merging adjacent
> > segments. However, if there were no adjacent segments to
> > merge, we would've skipped erasing the pad, leaving non-zero
> > memory in our free space.
> >
> > Fix this by including pad in the erasing unconditionally.
> >
> > Fixes: e43a9f52b7ff ("malloc: fix pad erasing")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Andrew Rybchenko <arybchenko at solarflare.com>
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> 
> Many thanks, the patch fixes the problem I've observed.
> 
> Tested-by: Andrew Rybchenko <arybchenko at solarflare.com>

Applied, thanks





More information about the dev mailing list