Re: [PATCH] net/ionic: fix double-free of mbufs when emptying array

2024-07-07 Thread Ferruh Yigit
On 7/1/2024 4:19 PM, Andrew Boyer wrote: > The bulk-allocation array is used back to front, so we need to free > everything before the marker, not after it. Flip ionic_empty_array() > so that it frees from 0 to the provided index. Adjust the callers > as needed. > > Fixes: 218afd825bca ("net/ionic

[PATCH] net/ionic: fix double-free of mbufs when emptying array

2024-07-01 Thread Andrew Boyer
The bulk-allocation array is used back to front, so we need to free everything before the marker, not after it. Flip ionic_empty_array() so that it frees from 0 to the provided index. Adjust the callers as needed. Fixes: 218afd825bca ("net/ionic: do bulk allocations of Rx mbufs") CC: sta...@dpdk.o