]> 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)
commit79ab6bf30fb9369bc15e90bf90663f9a0b2a77da
tree07777976c5309485da157c7801206314e2c48f05
parentac715770389133fabdd6d6f8d0a571f4e762dd6c
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: cde5c887ce57 ("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