]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ee3851942ad61172256849bd5b3ee69f80a55e4
tree07777976c5309485da157c7801206314e2c48f05
parent6ecee4d00cd6133be1e22115f8f183fda69665b1
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: a55d9badedef ("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