OSDN Git Service

IB/mlx5: Fix wrong error unwind
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Dec 2018 23:39:26 +0000 (16:39 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 21 Dec 2018 03:49:31 +0000 (20:49 -0700)
commit623d154305c06c83924b8fd2afbfdeba3b396fb7
tree5d7a9f073ce742255b8b2c83532003ef7b47aa6b
parente7c4d8e6045171896d763c551b90c672fb5ab42b
IB/mlx5: Fix wrong error unwind

The destroy_workqueue on error unwind is missing, and the code jumps to
the wrong exit label.

Fixes: 813e90b1aeaa ("IB/mlx5: Add advise_mr() support")
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c