mempool/dpaa2: fix freeing bp list
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 22 Jun 2017 12:48:08 +0000 (18:18 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Jul 2017 06:28:22 +0000 (09:28 +0300)
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 <hemant.agrawal@nxp.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/mempool/dpaa2/dpaa2_hw_mempool.c

index 14ca226..6df203f 100644 (file)
@@ -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;