mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:23:00 -04:00
udmabuf: drop WARN_ON() check.
Reported-by: Laurent Pinchart <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
parent
52499d9cdd
commit
7b26e4e211
1 changed files with 0 additions and 3 deletions
|
|
@ -25,9 +25,6 @@ static int udmabuf_vm_fault(struct vm_fault *vmf)
|
|||
struct vm_area_struct *vma = vmf->vma;
|
||||
struct udmabuf *ubuf = vma->vm_private_data;
|
||||
|
||||
if (WARN_ON(vmf->pgoff >= ubuf->pagecount))
|
||||
return VM_FAULT_SIGBUS;
|
||||
|
||||
vmf->page = ubuf->pages[vmf->pgoff];
|
||||
get_page(vmf->page);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue