summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2017-06-22 18:18:08 +0530
committerYuanhan Liu <yliu@fridaylinux.org>2017-08-29 14:50:28 +0800
commit1a7097fe808c6d86caf4e1e42394fb488a5dea49 (patch)
tree76cbbc078175f0b1dbced5669f80511209239907
parent8cc83e846441b896b7ca1379c8b83ad0b2cf169b (diff)
downloaddpdk-stable-1a7097fe808c6d86caf4e1e42394fb488a5dea49.zip
dpdk-stable-1a7097fe808c6d86caf4e1e42394fb488a5dea49.tar.gz
dpdk-stable-1a7097fe808c6d86caf4e1e42394fb488a5dea49.tar.xz
mempool/dpaa2: fix freeing bp list
[ upstream commit f31f7288835afc06171ae43164ffb6e43d263f52 ] 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") 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>
-rw-r--r--drivers/mempool/dpaa2/dpaa2_hw_mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
index 27ed5a9..62a2d25 100644
--- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
+++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c
@@ -161,7 +161,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;