IB/mlx4: Fix create CQ error flow
authorMatan Barak <matanb@mellanox.com>
Thu, 10 Nov 2016 09:30:55 +0000 (11:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:03:38 +0000 (11:03 +0100)
commit1aecb8e4179bb9f5b60f0819b4ddc32f0f9ef6bc
treeef3b0b86b90c816dba325080befd380edd50847b
parent95bc51b50455fec08f8058ead67fb92db5fea9e0
IB/mlx4: Fix create CQ error flow

commit 593ff73bcfdc79f79a8a0df55504f75ad3e5d1a9 upstream.

Currently, if ib_copy_to_udata fails, the CQ
won't be deleted from the radix tree and the HW (HW2SW).

Fixes: 225c7b1feef1 ('IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/infiniband/hw/mlx4/cq.c