[dpdk-dev] [PATCH v2] mempool: fix unsafe removal from list by callback

2016-07-25 Thread Thomas Monjalon
> > If a mempool is removed from the list by a callback function > > during rte_mempool_walk(), the TAILQ_FOREACH loop will fail unexpectedly. > > It is fixed by using the safe version of the loop macro. > > > > Reported-by: Sergio Gonzalez Monroy > > Signed-off-by: Thomas Monjalon > > Acked-by

[dpdk-dev] [PATCH v2] mempool: fix unsafe removal from list by callback

2016-07-25 Thread Olivier Matz
Hello Thomas, On 07/25/2016 09:54 PM, Thomas Monjalon wrote: > If a mempool is removed from the list by a callback function > during rte_mempool_walk(), the TAILQ_FOREACH loop will fail unexpectedly. > It is fixed by using the safe version of the loop macro. > > Reported-by: Sergio Gonzalez Monro

[dpdk-dev] [PATCH v2] mempool: fix unsafe removal from list by callback

2016-07-25 Thread Thomas Monjalon
If a mempool is removed from the list by a callback function during rte_mempool_walk(), the TAILQ_FOREACH loop will fail unexpectedly. It is fixed by using the safe version of the loop macro. Reported-by: Sergio Gonzalez Monroy Signed-off-by: Thomas Monjalon --- lib/librte_mempool/rte_mempool.c