Re: [dpdk-dev] [PATCH] mempool: fix anonymous populate

2020-01-20 Thread Thomas Monjalon
17/01/2020 15:34, Olivier Matz: > The documentation says that a negative errno is returned on error, but > in most places that's not the case. > > Fix the documentation and the exceptions in code. The second one > (return from populate_virt) also fixes a memory leak. > > Note that testpmd was usi

[dpdk-dev] [PATCH] mempool: fix anonymous populate

2020-01-17 Thread Olivier Matz
The documentation says that a negative errno is returned on error, but in most places that's not the case. Fix the documentation and the exceptions in code. The second one (return from populate_virt) also fixes a memory leak. Note that testpmd was using the function correctly. Fixes: aa10457eb4c