提交 05061354 编写于 作者: P Paul Mackerras

powerpc: Fix bug in iommu_alloc_coherent causing hang during boot

In commit 8eb6c6e3, Christoph Hellwig
made iommu_alloc_coherent able to do node-local allocations, but
unfortunately got the order of the arguments to alloc_pages_node
wrong.  This fixes it.
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 6b81e800
......@@ -561,7 +561,7 @@ void *iommu_alloc_coherent(struct iommu_table *tbl, size_t size,
return NULL;
/* Alloc enough pages (and possibly more) */
page = alloc_pages_node(flag, order, node);
page = alloc_pages_node(node, flag, order);
if (!page)
return NULL;
ret = page_address(page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册