linux/drivers/infiniband/hw/hns
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
..
hns_roce_ah.c RDMA/hns: Program the tclass and flow label into the hardware 2018-07-30 20:42:44 -06:00
hns_roce_alloc.c IB/hns: Use zeroing memory allocator instead of allocator/memset 2018-06-04 10:50:04 -06:00
hns_roce_cmd.c RDMA/hns: Add reset process for RoCE in hip08 2018-05-30 20:45:02 -04:00
hns_roce_cmd.h RDMA/hns: Add eq support of hip08 2017-12-22 09:21:45 -07:00
hns_roce_common.h RDMA/hns: Update the implementation of set_mac 2018-07-11 14:09:25 -06:00
hns_roce_cq.c RDMA/hns: Bugfix for cq record db for kernel 2018-05-23 15:45:44 -06:00
hns_roce_db.c RDMA/hns: Support flush cqe for hip08 in kernel space 2018-08-02 20:03:25 -06:00
hns_roce_device.h RDMA/hns: Support flush cqe for hip08 in kernel space 2018-08-02 20:03:25 -06:00
hns_roce_hem.c RDMA/hns: Use delay instead of usleep 2018-07-26 16:51:47 -06:00
hns_roce_hem.h RDMA/hns: Get rid of page operation after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_hw_v1.c RDMA/hns: Program the tclass and flow label into the hardware 2018-07-30 20:42:44 -06:00
hns_roce_hw_v1.h RDMA/hns: Fix endian conversions and annotations 2018-07-11 14:09:25 -06:00
hns_roce_hw_v2.c RDMA/hns: Support flush cqe for hip08 in kernel space 2018-08-02 20:03:25 -06:00
hns_roce_hw_v2.h RDMA/hns: Use macro instead of magic number 2018-07-30 20:42:44 -06:00
hns_roce_main.c RDMA/hns: Enable modify_cq for uverbs. 2018-07-26 20:12:35 -06:00
hns_roce_mr.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
hns_roce_pd.c RDMA/hns: Fix usage of bitmap allocation functions return values 2018-08-15 15:08:35 -06:00
hns_roce_qp.c RDMA/hns: Fix usage of bitmap allocation functions return values 2018-08-15 15:08:35 -06:00
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Support rq record doorbell for the user space 2018-03-13 16:40:15 -04:00