summaryrefslogtreecommitdiff
path: root/drm/nouveau_ttm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drm/nouveau_ttm.c')
-rw-r--r--drm/nouveau_ttm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/nouveau_ttm.c b/drm/nouveau_ttm.c
index e81d08657..753a6def6 100644
--- a/drm/nouveau_ttm.c
+++ b/drm/nouveau_ttm.c
@@ -281,7 +281,7 @@ nouveau_ttm_mmap(struct file *filp, struct vm_area_struct *vma)
struct nouveau_drm *drm = nouveau_drm(file_priv->minor->dev);
if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET))
- return drm_mmap(filp, vma);
+ return -EINVAL;
return ttm_bo_mmap(filp, vma, &drm->ttm.bdev);
}