From 7b26e4e2119d0c5ede1282b22ce2af22835ff4b5 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 11 Sep 2018 15:42:14 +0200 Subject: udmabuf: drop WARN_ON() check. Reported-by: Laurent Pinchart Signed-off-by: Gerd Hoffmann Reviewed-by: Laurent Pinchart Link: http://patchwork.freedesktop.org/patch/msgid/20180911134216.9760-12-kraxel@redhat.com --- drivers/dma-buf/udmabuf.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/dma-buf') diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 5dd73bc511ba..63cc77edd1f3 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -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; -- cgit v1.2.3