Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276153
b: refs/heads/master
c: ea2e705
h: refs/heads/master
i:
  276151: 8e3a6f4
v: v3
  • Loading branch information
Sumit Bhattacharya authored and Russell King committed Nov 26, 2011
1 parent 51e9840 commit ebd2928
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c36ef4b1762302a493c6cb754073bded084700e2
refs/heads/master: ea2e7057c0234cfb8b09467d8f137760d371fc72
9 changes: 9 additions & 0 deletions trunk/arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp,
struct page *page;
void *addr;

/*
* Following is a work-around (a.k.a. hack) to prevent pages
* with __GFP_COMP being passed to split_page() which cannot
* handle them. The real problem is that this flag probably
* should be 0 on ARM as it is not supported on this
* platform; see CONFIG_HUGETLBFS.
*/
gfp &= ~(__GFP_COMP);

*handle = ~0;
size = PAGE_ALIGN(size);

Expand Down

0 comments on commit ebd2928

Please sign in to comment.