summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-01-03 18:20:04 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-07 22:18:54 -0200
commitc0cd5010e54e52931c321ee66d81d10a8e2a9ff6 (patch)
treef21bfe54d568c84e6f807676a3f9227001f07adc /drivers/media/video
parent8cfc7f9c005313ecd4e98ad1feb391d8dfce9ed2 (diff)
downloadkernel-crypto-c0cd5010e54e52931c321ee66d81d10a8e2a9ff6.tar.gz
kernel-crypto-c0cd5010e54e52931c321ee66d81d10a8e2a9ff6.tar.xz
kernel-crypto-c0cd5010e54e52931c321ee66d81d10a8e2a9ff6.zip
V4L/DVB (10176a): Switch remaining clear_user_page users over to clear_user_highpage
Not all architectures provide clear_user_page(), but clear_user_highpage() is available everywhere at least via the compatibility inline function. Is this the "trivial patch" that's required for these two drivers? Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/videobuf-dma-sg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
index bc6d5aba0fe..da1790e57a8 100644
--- a/drivers/media/video/videobuf-dma-sg.c
+++ b/drivers/media/video/videobuf-dma-sg.c
@@ -388,8 +388,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), (unsigned long)vmf->virtual_address,
- page);
+ clear_user_highpage(page, (unsigned long)vmf->virtual_address);
vmf->page = page;
return 0;
}