Message ID | 20241211100953.2069964-1-jianqi.ren.cn@windriver.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [6.1.y] net/mlx5e: Don't call cleanup on profile rollback failure | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
On Wed, Dec 11, 2024 at 06:09:53PM +0800, jianqi.ren.cn@windriver.com wrote: > From: Cosmin Ratiu <cratiu@nvidia.com> > > [ Upstream commit 4dbc1d1a9f39c3711ad2a40addca04d07d9ab5d0 ] Please note that we can not apply a commit to an older stable tree that is NOT in newer ones as you would obviously have a regression when moving to a newer kernel. I am guessing that you are being tasked with backporting CVE fixes to older stable kernels, which is great, but please work "down the release list" by starting with the newest one, and then moving to the older ones. Otherwise we just can't take these and you are causing a lot of extra review/checking time on our side here to verify you are doing it all correctly :( thanks, greg k-h
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 385904502a6b..8ee6a81b42b4 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -5980,7 +5980,9 @@ static void mlx5e_remove(struct auxiliary_device *adev) mlx5e_dcbnl_delete_app(priv); unregister_netdev(priv->netdev); mlx5e_suspend(adev, state); - priv->profile->cleanup(priv); + /* Avoid cleanup if profile rollback failed. */ + if (priv->profile) + priv->profile->cleanup(priv); mlx5e_devlink_port_unregister(priv); mlx5e_destroy_netdev(priv); }