Skip to content

Commit

Permalink
Merge branch 'fixes-for-linus' of git://git.linaro.org/people/mszypro…
Browse files Browse the repository at this point in the history
…wski/linux-dma-mapping

Git pull DMA-mapping fix from Marek Szyprowski:
 "Another minor fixup for ARM dma-mapping redesign and extensions merged
  in this merge window"

* 'fixes-for-linus' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping:
  ARM: dma-mapping: fix buffer chunk allocation order
  • Loading branch information
Linus Torvalds committed Jun 25, 2012
2 parents 09682c1 + 593f473 commit 5c0a981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ static struct page **__iommu_alloc_buffer(struct device *dev, size_t size, gfp_t
return NULL;

while (count) {
int j, order = __ffs(count);
int j, order = __fls(count);

pages[i] = alloc_pages(gfp | __GFP_NOWARN, order);
while (!pages[i] && order)
Expand Down

0 comments on commit 5c0a981

Please sign in to comment.