Skip to content
Commit 020fb3be authored by Wei Yongjun's avatar Wei Yongjun Committed by Doug Ledford
Browse files

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: e8ac9389 ("RDMA: Fix allocation failure on pointer pd")
Fixes: 21a428a0 ("RDMA: Handle PD allocations by IB/core")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190801012725.150493-1-weiyongjun1@huawei.com


Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 23eaf3b5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment