projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced0776
)
RDMA/hns: Use free_pages function instead of free_page
author
oulijun
<oulijun@huawei.com>
Wed, 7 Feb 2018 09:49:30 +0000
(17:49 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Wed, 14 Feb 2018 23:30:12 +0000
(16:30 -0700)
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>
drivers/infiniband/hw/hns/hns_roce_mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_mr.c
b/drivers/infiniband/hw/hns/hns_roce_mr.c
index
da86a81
..
f7256d8
100644
(file)
--- 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_page
s((unsigned long) pages, order
);
return ret;
}