Skip to content

Commit ca69690

Browse files
Oleksandr Tyshchenkojgross1
authored andcommitted
drm/xen: Add missing VM_DONTEXPAND flag in mmap callback
With Xen PV Display driver in use the "expected" VM_DONTEXPAND flag is not set (neither explicitly nor implicitly), so the driver hits the code path in drm_gem_mmap_obj() which triggers the WARNING. Signed-off-by: Oleksandr Tyshchenko <[email protected]> Reviewed-by: Oleksandr Andrushchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
1 parent ecb6237 commit ca69690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xen/xen_drm_front_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static int xen_drm_front_gem_object_mmap(struct drm_gem_object *gem_obj,
7171
* the whole buffer.
7272
*/
7373
vma->vm_flags &= ~VM_PFNMAP;
74-
vma->vm_flags |= VM_MIXEDMAP;
74+
vma->vm_flags |= VM_MIXEDMAP | VM_DONTEXPAND;
7575
vma->vm_pgoff = 0;
7676

7777
/*

0 commit comments

Comments
 (0)