Commit c9c09078 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

D:2003/08/31 20:47:16
C:PCM Midlevel
A:Jaroslav Kysela <perex@suse.cz>
F:core/pcm_native.c:1.78->1.79 
L:get_page() fix
parent 3b199871
...@@ -2791,6 +2791,7 @@ static struct page * snd_pcm_mmap_status_nopage(struct vm_area_struct *area, uns ...@@ -2791,6 +2791,7 @@ static struct page * snd_pcm_mmap_status_nopage(struct vm_area_struct *area, uns
return NOPAGE_OOM; return NOPAGE_OOM;
runtime = substream->runtime; runtime = substream->runtime;
page = virt_to_page(runtime->status); page = virt_to_page(runtime->status);
if (!PageReserved(page))
get_page(page); get_page(page);
return page; return page;
} }
...@@ -2828,6 +2829,7 @@ static struct page * snd_pcm_mmap_control_nopage(struct vm_area_struct *area, un ...@@ -2828,6 +2829,7 @@ static struct page * snd_pcm_mmap_control_nopage(struct vm_area_struct *area, un
return NOPAGE_OOM; return NOPAGE_OOM;
runtime = substream->runtime; runtime = substream->runtime;
page = virt_to_page(runtime->control); page = virt_to_page(runtime->control);
if (!PageReserved(page))
get_page(page); get_page(page);
return page; return page;
} }
...@@ -2893,6 +2895,7 @@ static struct page * snd_pcm_mmap_data_nopage(struct vm_area_struct *area, unsig ...@@ -2893,6 +2895,7 @@ static struct page * snd_pcm_mmap_data_nopage(struct vm_area_struct *area, unsig
vaddr = runtime->dma_area + offset; vaddr = runtime->dma_area + offset;
page = virt_to_page(vaddr); page = virt_to_page(vaddr);
} }
if (!PageReserved(page))
get_page(page); get_page(page);
return page; return page;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment