]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix error path for set HCA defaults
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 8 Mar 2021 13:41:55 +0000 (15:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 16 Jun 2021 22:36:32 +0000 (15:36 -0700)
commit94a4b8414d3e91104873007b659252f855ee344a
tree412bef8bce42fba5c8694b7ee2e78f244d889156
parentda5ac772cfe2a03058b0accfac03fad60c46c24d
net/mlx5: Fix error path for set HCA defaults

In the case of the failure to execute mlx5_core_set_hca_defaults(),
we used wrong goto label to execute error unwind flow.

Fixes: 5bef709d76a2 ("net/mlx5: Enable host PF HCA after eswitch is initialized")
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c