diff options
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index eb5dd67153e4..f9af78541505 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c | |||
@@ -888,7 +888,7 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma) | |||
888 | vma_pages(vma)); | 888 | vma_pages(vma)); |
889 | if (!node) { | 889 | if (!node) { |
890 | mutex_unlock(&dev->struct_mutex); | 890 | mutex_unlock(&dev->struct_mutex); |
891 | return drm_mmap(filp, vma); | 891 | return -EINVAL; |
892 | } else if (!drm_vma_node_is_allowed(node, filp)) { | 892 | } else if (!drm_vma_node_is_allowed(node, filp)) { |
893 | mutex_unlock(&dev->struct_mutex); | 893 | mutex_unlock(&dev->struct_mutex); |
894 | return -EACCES; | 894 | return -EACCES; |