[dpdk-dev] [PATCH] mempool: fix stack handler dequeue

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Jan 29 23:37:28 CET 2017

2017-01-23 18:11, Olivier Matz:
> The return value of the stack handler is wrong: it should be 0 on
> success, not the number of objects dequeued.
> This could lead to memory leaks depending on how the caller checks the
> return value (ret < 0 or ret != 0). This was also breaking autotests
> with debug enabled, because the debug cookies are only updated when the
> function returns 0, so the cookies were not updated, leading to
> an abort().
> Fixes: 295a530b0844 ("mempool: add stack mempool handler")
> CC: stable at dpdk.org
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks

More information about the dev mailing list