Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99121
b: refs/heads/master
c: 9f515b6
h: refs/heads/master
i:
  99119: a4ff857
v: v3
  • Loading branch information
Jaroslav Kysela committed Jun 17, 2008
1 parent 21f8002 commit 9e5e7c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6719292af5513da52aa876d0e7ac4367a0851845
refs/heads/master: 9f515b6898d0f2c1b9eb34ae9986794045f34e2b
10 changes: 8 additions & 2 deletions trunk/sound/pci/emu10k1/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,17 @@ static int synth_alloc_pages(struct snd_emu10k1 *emu, struct snd_emu10k1_memblk
/* first try to allocate from <4GB zone */
struct page *p = alloc_page(GFP_KERNEL | GFP_DMA32 |
__GFP_NOWARN);
if (!p || (page_to_pfn(p) & ~(emu->dma_mask >> PAGE_SHIFT)))
if (!p || (page_to_pfn(p) & ~(emu->dma_mask >> PAGE_SHIFT))) {
/* try to allocate from <16MB zone */
p = alloc_page(GFP_ATOMIC | GFP_DMA |
struct page *p1 =
alloc_page(GFP_ATOMIC | GFP_DMA |
__GFP_NORETRY | /* no OOM-killer */
__GFP_NOWARN);
/* free page outside dma_mask range */
if (p)
free_page((unsigned long)page_address(p));
p = p1;
}
if (!p) {
__synth_free_pages(emu, first_page, page - 1);
return -ENOMEM;
Expand Down

0 comments on commit 9e5e7c2

Please sign in to comment.