linux-brain/drivers/infiniband/hw/hns
Gal Pressman 070492dd20 RDMA/hns: Fix usage of bitmap allocation functions return values
[ Upstream commit a1ceeca679 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-15 09:42:58 +02:00
..
Kconfig
Makefile
hns_roce_ah.c
hns_roce_alloc.c
hns_roce_cmd.c
hns_roce_cmd.h
hns_roce_common.h
hns_roce_cq.c IB/hns: Cq has not been freed 2016-10-03 11:43:15 -04:00
hns_roce_device.h IB/hns: Delete the sqp_start from the structure hns_roce_caps 2016-10-03 11:43:15 -04:00
hns_roce_eq.c IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c infiniband: hns: avoid gcc-7.0.1 warning for uninitialized data 2017-07-05 14:40:30 +02:00
hns_roce_hw_v1.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_main.c IB/hns: Modify the init of iboe lock 2016-10-03 11:43:15 -04:00
hns_roce_mr.c IB/hns: Fix bug of memory leakage for registering user mr 2016-10-03 11:43:15 -04:00
hns_roce_pd.c RDMA/hns: Fix usage of bitmap allocation functions return values 2018-09-15 09:42:58 +02:00
hns_roce_qp.c RDMA/hns: Fix usage of bitmap allocation functions return values 2018-09-15 09:42:58 +02:00
hns_roce_user.h