linux/drivers/infiniband
Yishai Hadas dd928eae0c RDMA/mlx5: Don't assume that medium blueFlame register exists
commit 18b0362e87 upstream.

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: c1be5232d2 ("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>
[bwh: Backported to 3.16:
 - s/bfreg/uuar/g
 - Neither alloc_med_class_uuar() nor num_med_uuar() takes a mlx5_ib_dev
   pointer, so first_med_uuar() doesn't need to take one
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-10-21 08:45:58 +01:00
..
core RDMA/iwpm: fix memory leak on map_info 2018-10-21 08:45:48 +01:00
hw RDMA/mlx5: Don't assume that medium blueFlame register exists 2018-10-21 08:45:58 +01:00
ulp IB/srp: Fix srp_abort() 2018-10-21 08:44:51 +01:00
Kconfig Merge branch 'ip-roce' into for-next 2014-01-22 23:24:21 -08:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00