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

Ferruh Yigit ferruh.yigit at amd.com
Sun Jul 7 20:55:37 CEST 2024


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: do bulk allocations of Rx mbufs")
> CC: stable at dpdk.org
> 
> Signed-off-by: Andrew Boyer <andrew.boyer at amd.com>
>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list