drm/xen: Add missing VM_DONTEXPAND flag in mmap callback
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Mon, 9 May 2022 13:51:43 +0000 (16:51 +0300)
committerJuergen Gross <jgross@suse.com>
Tue, 21 Jun 2022 14:36:13 +0000 (16:36 +0200)
commitca6969013d13282b42cb5edcc13db731a08e0ad8
tree5a276cfde22ba9a4d624eda7567fd6f28204b064
parentecb6237fa397b7b810d798ad19322eca466dbab1
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 <oleksandr_tyshchenko@epam.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Link: https://lore.kernel.org/r/1652104303-5098-1-git-send-email-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/gpu/drm/xen/xen_drm_front_gem.c