[dpdk-dev] [PATCH 2/2] mempool: fix unsafe tailq element removal

2016-07-25 Thread Olivier Matz
Hi Sergio, On 07/22/2016 06:01 PM, Sergio Gonzalez Monroy wrote: > Potentially user provided function could remove/free tailq elements. > Doing so within a TAILQ_FOREACH loop is not safe. > > Use _SAFE versions of _FOREACH macros. > > Signed-off-by: Sergio Gonzalez Monroy > --- > lib/librte_me

[dpdk-dev] [PATCH 2/2] mempool: fix unsafe tailq element removal

2016-07-22 Thread Sergio Gonzalez Monroy
Potentially user provided function could remove/free tailq elements. Doing so within a TAILQ_FOREACH loop is not safe. Use _SAFE versions of _FOREACH macros. Signed-off-by: Sergio Gonzalez Monroy --- lib/librte_mempool/rte_mempool.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(