IB/mlx5: Fix error handling order in create_kernel_qp
authorEli Cohen <eli@mellanox.com>
Tue, 3 Jan 2017 21:55:20 +0000 (23:55 +0200)
committerLeon Romanovsky <leon@kernel.org>
Sun, 8 Jan 2017 09:21:26 +0000 (11:21 +0200)
commitf4044dac63e952ac1137b6df02b233d37696e2f5
tree8e4537d096fa8cfe9e91a70b4584816cae88e62c
parentde8d6e02efbdb259c67832ccf027d7ace9b91d5d
IB/mlx5: Fix error handling order in create_kernel_qp

Make sure order of cleanup is exactly the opposite of initialization.

Fixes: 9603b61de1ee ('mlx5: Move pci device handling from mlx5_ib to mlx5_core')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c