linux/drivers/infiniband
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
..
core IB/core: Change filter function return type from int to bool 2018-08-15 13:33:20 -06:00
hw RDMA/hns: Fix usage of bitmap allocation functions return values 2018-08-15 15:08:35 -06:00
sw RDMA/rxe: Set wqe->status correctly if an unexpected response is received 2018-08-08 09:57:30 -06:00
ulp IB/ipoib: Consolidate checking of the proposed child interface 2018-08-02 20:27:44 -06:00
Kconfig IB/ucm: Fix compiling ucm.c 2018-08-13 20:04:37 -06:00
Makefile