Skip to content

Commit

Permalink
V4L/DVB (6749): v4l-nopage-fix
Browse files Browse the repository at this point in the history
dont just copy-and-paste stuff.
(compile-tested this time)

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Andrew Morton authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 105354a commit d172b8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/videobuf-dma-sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ videobuf_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
page = alloc_page(GFP_USER | __GFP_DMA32);
if (!page)
return VM_FAULT_OOM;
clear_user_page(page_address(page), vaddr, page);
clear_user_page(page_address(page), (unsigned long)vmf->virtual_address,
page);
vmf->page = page;
return 0;
}
Expand Down

0 comments on commit d172b8b

Please sign in to comment.