diff options
author | oulijun <oulijun@huawei.com> | 2018-02-07 17:49:30 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-14 16:30:12 -0700 |
commit | d480bb50d294e23a6773c507b8017e6bc45efc67 (patch) | |
tree | 543c402e0735fe4337f97cefc6d921236e26f8ca /drivers/infiniband/hw/hns/hns_roce_mr.c | |
parent | ced07769dc8484a9221aa616b3e935e748e8db03 (diff) | |
download | linux-d480bb50d294e23a6773c507b8017e6bc45efc67.tar.bz2 |
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 'drivers/infiniband/hw/hns/hns_roce_mr.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_mr.c | 2 |
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; } |