From: Hemant Agrawal Date: Thu, 22 Jun 2017 12:48:08 +0000 (+0530) Subject: mempool/dpaa2: fix freeing bp list X-Git-Tag: spdx-start~2375 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f31f7288835afc06171ae43164ffb6e43d263f52;p=dpdk.git mempool/dpaa2: fix freeing bp list The dpaa2_bp_list is being allocated using "rte_malloc", but the free is done using "free". Fixing it to use "rte_free". Fixes: 5dc43d22b5ad ("mempool/dpaa2: add hardware offloaded mempool") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Reviewed-by: Olivier Matz Acked-by: Shreyansh Jain --- diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 14ca226f3e..6df203fce2 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -166,7 +166,7 @@ rte_hw_mbuf_free_pool(struct rte_mempool *mp) while (temp) { if (temp == bp) { prev->next = temp->next; - free(bp); + rte_free(bp); break; } prev = temp;