Re: [PATCH] vdpa/mlx5: Fix error path during device add

2024-11-06 Thread Eugenio Perez Martin
On Tue, Nov 5, 2024 at 7:52 PM Dragos Tatulea wrote: > > In the error recovery path of mlx5_vdpa_dev_add(), the cleanup is > executed and at the end put_device() is called which ends up calling > mlx5_vdpa_free(). This function will execute the same cleanup all over > again. Most resources support

Re: [PATCH] vdpa/mlx5: Fix error path during device add

2024-11-05 Thread Jason Wang
On Wed, Nov 6, 2024 at 2:52 AM Dragos Tatulea wrote: > > In the error recovery path of mlx5_vdpa_dev_add(), the cleanup is > executed and at the end put_device() is called which ends up calling > mlx5_vdpa_free(). This function will execute the same cleanup all over > again. Most resources support

[PATCH] vdpa/mlx5: Fix error path during device add

2024-11-05 Thread Dragos Tatulea
In the error recovery path of mlx5_vdpa_dev_add(), the cleanup is executed and at the end put_device() is called which ends up calling mlx5_vdpa_free(). This function will execute the same cleanup all over again. Most resources support being cleaned up twice, but the recent mlx5_vdpa_destroy_mr_res