Skip to content

Commit 7b26e4e

Browse files
committed
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]
1 parent 52499d9 commit 7b26e4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/dma-buf/udmabuf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ static int udmabuf_vm_fault(struct vm_fault *vmf)
2525
struct vm_area_struct *vma = vmf->vma;
2626
struct udmabuf *ubuf = vma->vm_private_data;
2727

28-
if (WARN_ON(vmf->pgoff >= ubuf->pagecount))
29-
return VM_FAULT_SIGBUS;
30-
3128
vmf->page = ubuf->pages[vmf->pgoff];
3229
get_page(vmf->page);
3330
return 0;

0 commit comments

Comments
 (0)