summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroulijun <oulijun@huawei.com>2018-05-04 10:57:12 +0800
committerDoug Ledford <dledford@redhat.com>2018-05-09 10:45:18 -0400
commit79d442071a733057e4d9f28c90fbdb4f39d9fc23 (patch)
treef6e0d61f538b756525798abfbaec5779da4b9542
parent85e0274dc66430b0d0fad7ad01cbc0e0cbebf6dc (diff)
downloadlinux-79d442071a733057e4d9f28c90fbdb4f39d9fc23.tar.gz
linux-79d442071a733057e4d9f28c90fbdb4f39d9fc23.tar.bz2
linux-79d442071a733057e4d9f28c90fbdb4f39d9fc23.zip
RDMA/hns: Set NULL for __internal_mr
This patch mainly configure value for __internal_mr of mr_free_pd. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
index 47e1b6ac1e1a..b3417a9a49de 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
@@ -722,6 +722,7 @@ static int hns_roce_v1_rsv_lp_qp(struct hns_roce_dev *hr_dev)
free_mr->mr_free_pd = to_hr_pd(pd);
free_mr->mr_free_pd->ibpd.device = &hr_dev->ib_dev;
free_mr->mr_free_pd->ibpd.uobject = NULL;
+ free_mr->mr_free_pd->ibpd.__internal_mr = NULL;
atomic_set(&free_mr->mr_free_pd->ibpd.usecnt, 0);
attr.qp_access_flags = IB_ACCESS_REMOTE_WRITE;