diff options
author | Parav Pandit <parav@mellanox.com> | 2017-10-01 08:54:35 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-10-04 20:59:15 +0200 |
commit | e19cd282ebedb801e572efae5df2f88d573932ce (patch) | |
tree | b3afc3a2a04285ad2314d44f3d39a323b47c8317 /drivers/infiniband/hw/mlx5 | |
parent | RDMA/iwpm: Properly mark end of NL messages (diff) | |
download | linux-e19cd282ebedb801e572efae5df2f88d573932ce.tar.xz linux-e19cd282ebedb801e572efae5df2f88d573932ce.zip |
IB/mlx5: Fix label order in error path handling
When UAR get_page fails, it needs to continue to cleanup debugfs for
congestion control parameters. Labels for error path were incorrectly
ordered.
This patch fixes to do correct cleanup on debugfs init failure and uar
get page failure.
Fixes: 4a2da0b8c078 ("IB/mlx5: Add debug control parameters for congestion control")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index d6fbad8f34aa..552f7bd4ecc3 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -4174,9 +4174,9 @@ err_bfreg: err_uar_page: mlx5_put_uars_page(dev->mdev, dev->mdev->priv.uar); -err_cnt: - mlx5_ib_cleanup_cong_debugfs(dev); err_cong: + mlx5_ib_cleanup_cong_debugfs(dev); +err_cnt: if (MLX5_CAP_GEN(dev->mdev, max_qp_cnt)) mlx5_ib_dealloc_counters(dev); |