Skip to content

Commit

Permalink
V4L/DVB (5069): Fix bttv and friends on 64bit machines with lots of m…
Browse files Browse the repository at this point in the history
…emory

We have a DMA32 zone now, lets use it to make sure the card
can reach the memory we have allocated for the video frame
buffers.

Signed-off-by: Gerds Hoffmann <kraxel@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Gerd Hoffmann authored and Mauro Carvalho Chehab committed Jan 15, 2007
1 parent e382f62 commit 10329b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/video-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ videobuf_vm_nopage(struct vm_area_struct *vma, unsigned long vaddr,
vaddr,vma->vm_start,vma->vm_end);
if (vaddr > vma->vm_end)
return NOPAGE_SIGBUS;
page = alloc_page(GFP_USER);
page = alloc_page(GFP_USER | __GFP_DMA32);
if (!page)
return NOPAGE_OOM;
clear_user_page(page_address(page), vaddr, page);
Expand Down

0 comments on commit 10329b9

Please sign in to comment.