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

2017-01-29 Thread Thomas Monjalon
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 > wit

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

2017-01-23 Thread 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 a