Skip to content

Commit

Permalink
powerpc: Fix bug in iommu_alloc_coherent causing hang during boot
Browse files Browse the repository at this point in the history
In commit 8eb6c6e, 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: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Jun 10, 2006
1 parent 6b81e80 commit 0506135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0506135

Please sign in to comment.