linux/drivers/infiniband/hw
Gal Pressman a1ceeca679 RDMA/hns: Fix usage of bitmap allocation functions return values
hns bitmap allocation functions return 0 on success and -1 on failure.
Callers of these functions wrongly used their return value as an errno,
fix that by making a proper conversion.

Fixes: a598c6f4c5 ("IB/hns: Simplify function of pd alloc and qp alloc")
Signed-off-by: Gal Pressman <pressmangal@gmail.com>
Acked-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-08-15 15:08:35 -06:00
..
bnxt_re RDMA/providers: Fix return value from create_srq callbacks 2018-07-30 20:29:45 -06:00
cxgb3 RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
cxgb4 iw_cxgb4: pass window scale in flowc work request 2018-08-08 09:54:55 -06:00
hfi1 IB/hfi1: Suppress a compiler warning 2018-07-11 14:20:45 -06:00
hns RDMA/hns: Fix usage of bitmap allocation functions return values 2018-08-15 15:08:35 -06:00
i40iw RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
mlx4 IB/mlx4: Use 4K pages for kernel QP's WQE buffer 2018-07-30 20:25:46 -06:00
mlx5 IB/mlx5: Fix leaking stack memory to userspace 2018-08-14 15:35:12 -06:00
mthca RDMA/providers: Fix return value from create_srq callbacks 2018-07-30 20:29:45 -06:00
nes RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
ocrdma RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
qedr qedr: Add user space support for SRQ 2018-08-14 16:31:54 -06:00
qib RDMA: Constify the argument of the work request conversion functions 2018-07-30 20:00:20 -06:00
usnic RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
vmw_pvrdma RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00