]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita73a273086c13aa3f176c999160e2b4d35de56a9
treeb3afc3a2a04285ad2314d44f3d39a323b47c8317
parent40d652667991044b020ffbe2cc9b66642b4d2481
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: 78900f3c669b ("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