mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
V4L/DVB (6749): v4l-nopage-fix
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>
This commit is contained in:
parent
105354a0f0
commit
d172b8bdab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user