aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <[email protected]>2018-09-11 15:42:14 +0200
committerGerd Hoffmann <[email protected]>2018-09-12 08:21:32 +0200
commit7b26e4e2119d0c5ede1282b22ce2af22835ff4b5 (patch)
treef423735d9516fd4584ad4979b3a96bd60e997dcf
parent52499d9cdd887843fa37bf8733047fded7e907cb (diff)
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]
-rw-r--r--drivers/dma-buf/udmabuf.c3
1 files changed, 0 insertions, 3 deletions
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;