Re: [PATCH] vdpa/mlx5: Fix invalid mr resource destroy

2024-08-28 Thread Dragos Tatulea
On 28.08.24 08:22, Si-Wei Liu wrote: > > > On 8/27/2024 9:08 AM, Dragos Tatulea wrote: >> Certain error paths from mlx5_vdpa_dev_add() can end up releasing mr >> resources which never got initialized in the first place. >> >> This patch adds the missing check in mlx5_vdpa_destroy_mr_resources(

Re: [PATCH] vdpa/mlx5: Fix invalid mr resource destroy

2024-08-27 Thread Si-Wei Liu
On 8/27/2024 9:08 AM, Dragos Tatulea wrote: Certain error paths from mlx5_vdpa_dev_add() can end up releasing mr resources which never got initialized in the first place. This patch adds the missing check in mlx5_vdpa_destroy_mr_resources() to block releasing non-initialized mr resources. Re

Re: [PATCH] vdpa/mlx5: Fix invalid mr resource destroy

2024-08-27 Thread Jason Wang
On Wed, Aug 28, 2024 at 12:08 AM Dragos Tatulea wrote: > > Certain error paths from mlx5_vdpa_dev_add() can end up releasing mr > resources which never got initialized in the first place. > > This patch adds the missing check in mlx5_vdpa_destroy_mr_resources() > to block releasing non-initialized

Re: [PATCH] vdpa/mlx5: Fix invalid mr resource destroy

2024-08-27 Thread Nelson, Shannon
On 8/27/2024 9:08 AM, Dragos Tatulea wrote: Certain error paths from mlx5_vdpa_dev_add() can end up releasing mr resources which never got initialized in the first place. This patch adds the missing check in mlx5_vdpa_destroy_mr_resources() to block releasing non-initialized mr resources. Refe

[PATCH] vdpa/mlx5: Fix invalid mr resource destroy

2024-08-27 Thread Dragos Tatulea
Certain error paths from mlx5_vdpa_dev_add() can end up releasing mr resources which never got initialized in the first place. This patch adds the missing check in mlx5_vdpa_destroy_mr_resources() to block releasing non-initialized mr resources. Reference trace: mlx5_core :08:00.2: mlx5_vd