From b0f76ad6fb9ff068754f12acc3a331669ce4f5c0 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Tue, 26 Jul 2016 14:11:48 -0300 Subject: Imported Upstream version 16.07-rc5 Change-Id: I1780a4c3b475eaf7e08e8ea67fba3a5257daa39c Signed-off-by: Ricardo Salveti --- lib/librte_mempool/rte_mempool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/librte_mempool') diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 8806633b..2e28e2e8 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -1283,12 +1283,13 @@ void rte_mempool_walk(void (*func)(struct rte_mempool *, void *), { struct rte_tailq_entry *te = NULL; struct rte_mempool_list *mempool_list; + void *tmp_te; mempool_list = RTE_TAILQ_CAST(rte_mempool_tailq.head, rte_mempool_list); rte_rwlock_read_lock(RTE_EAL_MEMPOOL_RWLOCK); - TAILQ_FOREACH(te, mempool_list, next) { + TAILQ_FOREACH_SAFE(te, mempool_list, next, tmp_te) { (*func)((struct rte_mempool *) te->data, arg); } -- cgit 1.2.3-korg