IB/mlx5: Fix label order in error path handling
authorParav Pandit <parav@mellanox.com>
Sun, 1 Oct 2017 06:54:35 +0000 (09:54 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 18:59:15 +0000 (14:59 -0400)
commite19cd282ebedb801e572efae5df2f88d573932ce
treeb3afc3a2a04285ad2314d44f3d39a323b47c8317
parent04eae427406ef6af9b05bd631e235f4a509666b1
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>
drivers/infiniband/hw/mlx5/main.c