summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videobuf-dma-sg.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-12-07 16:14:43 -0800
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-12-07 16:14:43 -0800
commit8e0902727b7a2171f0e3fd00f545e824539f04a9 (patch)
tree32a3f95d3e18c7d77047338f3b7fa3de32eaacfb /linux/drivers/media/video/videobuf-dma-sg.c
parentcd476bced39098128e4e24a78d8f5fe2d953f14e (diff)
downloadmediapointer-dvb-s2-8e0902727b7a2171f0e3fd00f545e824539f04a9.tar.gz
mediapointer-dvb-s2-8e0902727b7a2171f0e3fd00f545e824539f04a9.tar.bz2
v4l-nopage-fix
From: Andrew Morton <akpm@linux-foundation.org> dont just copy-and-paste stuff. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videobuf-dma-sg.c')
-rw-r--r--linux/drivers/media/video/videobuf-dma-sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videobuf-dma-sg.c b/linux/drivers/media/video/videobuf-dma-sg.c
index 712f59ac2..e2a3f9031 100644
--- a/linux/drivers/media/video/videobuf-dma-sg.c
+++ b/linux/drivers/media/video/videobuf-dma-sg.c
@@ -436,7 +436,7 @@ 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), vm_fault->virtual_address, page);
vmf->page = page;
return 0;
}