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: 5dc43d22b5
("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>
This commit is contained in:
parent
6ed4390e5e
commit
f31f728883
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user