Skip to content

Commit d480bb5

Browse files
oulijunjgunthorpe
authored andcommitted
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>
1 parent ced0776 commit d480bb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/infiniband/hw/hns/hns_roce_mr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev,
933933
ret = hns_roce_write_mtt(hr_dev, mtt, n, i, pages);
934934

935935
out:
936-
free_page((unsigned long) pages);
936+
free_pages((unsigned long) pages, order);
937937
return ret;
938938
}
939939

0 commit comments

Comments
 (0)