diff options
Diffstat (limited to 'linux/drm_vm.h')
-rw-r--r-- | linux/drm_vm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_vm.h b/linux/drm_vm.h index 277aae0a..30b0e73e 100644 --- a/linux/drm_vm.h +++ b/linux/drm_vm.h @@ -569,7 +569,7 @@ int DRM(mmap)(struct file *filp, struct vm_area_struct *vma) return -EPERM; /* Check for valid size. */ - if (map->size != vma->vm_end - vma->vm_start) return -EINVAL; + if (map->size < vma->vm_end - vma->vm_start) return -EINVAL; if (!capable(CAP_SYS_ADMIN) && (map->flags & _DRM_READ_ONLY)) { vma->vm_flags &= ~(VM_WRITE | VM_MAYWRITE); |