]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix error return code in hns_roce_v1_rsv_lp_qp()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 1 Aug 2019 01:27:25 +0000 (01:27 +0000)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Aug 2019 16:53:53 +0000 (12:53 -0400)
commit68bb26db166cac316fedc4267221f81adc176e6f
tree7776d85a43ceb63a0bb62c73b7d546f8ee1fe5de
parent5fbf5fcafcdf10f84a3071075f4f24e7d1828366
RDMA/hns: Fix error return code in hns_roce_v1_rsv_lp_qp()

Fix to return error code -ENOMEM from the rdma_zalloc_drv_obj() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 9f69740d7077 ("RDMA: Fix allocation failure on pointer pd")
Fixes: b697cead6dbc ("RDMA: Handle PD allocations by IB/core")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190801012725.150493-1-weiyongjun1@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c