]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6749): v4l-nopage-fix
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 8 Dec 2007 00:14:43 +0000 (21:14 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:20 +0000 (19:03 -0200)
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>
drivers/media/video/videobuf-dma-sg.c

index eea5b4ecfc3df06f31e7a1d377fe8a89f01cb681..98efd7ab1f50a5467c5d543cdbb37573df5f8571 100644 (file)
@@ -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;
 }