RDMA/mlx5: Don't assume that medium blueFlame register exists
authorYishai Hadas <yishaih@mellanox.com>
Mon, 7 May 2018 07:20:01 +0000 (10:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 14:39:50 +0000 (10:39 -0400)
commit18b0362e87dfa09e355093b897b9db854e360d28
tree07777976c5309485da157c7801206314e2c48f05
parentf9e76ca3771bf23d2142a81a88ddd8f31f5c4c03
RDMA/mlx5: Don't assume that medium blueFlame register exists

User can leave system without medium BlueFlames registers,
however the code assumed that at least one such register exists.

This patch fixes that assumption.

Fixes: c1be5232d21d ("IB/mlx5: Fix micro UAR allocator")
Reported-by: Rohit Zambre <rzambre@uci.edu>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c