IB/mlx5: Assign send CQ and recv CQ of UMR QP
authorMajd Dibbiny <majd@mellanox.com>
Mon, 30 Oct 2017 12:23:13 +0000 (14:23 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 18:53:22 +0000 (13:53 -0500)
commit31fde034a8bd964a5c7c1a5663fc87a913158db2
tree6e99bc41067edc28731a24dc84c4554dc7d3c63f
parent9950acf945f55222385d85489617e1d81e45fe34
IB/mlx5: Assign send CQ and recv CQ of UMR QP

The UMR's QP is created by calling mlx5_ib_create_qp directly, and
therefore the send CQ and the recv CQ on the ibqp weren't assigned.

Assign them right after calling the mlx5_ib_create_qp to assure
that any access to those pointers will work as expected and won't
crash the system as might happen as part of reset flow.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c