On Thu, Aug 01, 2019 at 01:27:25AM +0000, Wei Yongjun wrote: > 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: e8ac9389f0d7 ("RDMA: Fix allocation failure on pointer pd") > Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by IB/core") > Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>