History

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.

oulijun committed 8 years ago

Commit d480bb51 parent ced07761 file · +1 −1Browse files

Unified · Split

drivers/infiniband/hw/hns/hns_roce_mr.c+1−1
@@ -933,7 +933,7 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev, · 932 unmodified lines
933 ret = hns_roce_write_mtt(hr_dev, mtt, n, i, pages);933 ret = hns_roce_write_mtt(hr_dev, mtt, n, i, pages);
934 934
935out:935out:
936 free_page((unsigned long) pages);936 free_pages((unsigned long) pages, order);
937 return ret;937 return ret;
938}938}
939 939

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t