summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-09-11 15:42:14 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-09-12 08:21:32 +0200
commit7b26e4e2119d0c5ede1282b22ce2af22835ff4b5 (patch)
treef423735d9516fd4584ad4979b3a96bd60e997dcf /drivers/dma-buf
parent52499d9cdd887843fa37bf8733047fded7e907cb (diff)
downloadlinux-7b26e4e2119d0c5ede1282b22ce2af22835ff4b5.tar.bz2
udmabuf: drop WARN_ON() check.
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: http://patchwork.freedesktop.org/patch/msgid/20180911134216.9760-12-kraxel@redhat.com
Diffstat (limited to 'drivers/dma-buf')
-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;