aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_mr.c
diff options
context:
space:
mode:
authoroulijun <oulijun@huawei.com>2018-02-07 17:49:30 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-02-14 16:30:12 -0700
commitd480bb50d294e23a6773c507b8017e6bc45efc67 (patch)
tree543c402e0735fe4337f97cefc6d921236e26f8ca /drivers/infiniband/hw/hns/hns_roce_mr.c
parentRDMA/hns: Fix QP state judgement before receiving work requests (diff)
downloadlinux-dev-d480bb50d294e23a6773c507b8017e6bc45efc67.tar.xz
linux-dev-d480bb50d294e23a6773c507b8017e6bc45efc67.zip
RDMA/hns: Use free_pages function instead of free_page
It need to use free_pages function for free the memory allocated by __get_free_pages function. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c
index da86a8117bd5..f7256d88d38f 100644
--- a/drivers/infiniband/hw/hns/hns_roce_mr.c
+++ b/drivers/infiniband/hw/hns/hns_roce_mr.c
@@ -933,7 +933,7 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev,
ret = hns_roce_write_mtt(hr_dev, mtt, n, i, pages);
out:
- free_page((unsigned long) pages);
+ free_pages((unsigned long) pages, order);
return ret;
}