[PATCH 3/4] net/mlx5: fix incorrect buddy mempool init
Dariusz Sosnowski
dsosnowski at nvidia.com
Wed Nov 12 10:48:08 CET 2025
On Wed, Nov 12, 2025 at 09:47:39AM +0200, Bing Zhao wrote:
> From: Nupur Uttarwar <nuttarwar at nvidia.com>
>
> `buddy` was erroroneously declared as static. When multiple
> threads call this routine, they set the same static variable
> corrupting pool data and can cause potential double free when
> releasing resources.
>
> Fixes: b4dd7bcb0dcb ("net/mlx5/hws: add pool and buddy")
>
> Signed-off-by: Nupur Uttarwar <nuttarwar at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
More information about the dev
mailing list