Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/gem: Don't call drm_mmap from drm_gem_mmap

The only user I could dig out was i915 back when ums+gem was still a
thing. But we've just very much killed that, and even when someone
screams about that we should resurrect that with a special hack
(wrapping drm_gem_mmap) in i915, not in the core code.

So good riddance to another entry point of the legacy buffer mapping
code.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Daniel Vetter and committed by
Dave Airlie
197633b9 884c6dab

+1 -1
+1 -1
drivers/gpu/drm/drm_gem.c
··· 888 888 vma_pages(vma)); 889 889 if (!node) { 890 890 mutex_unlock(&dev->struct_mutex); 891 - return drm_mmap(filp, vma); 891 + return -EINVAL; 892 892 } else if (!drm_vma_node_is_allowed(node, filp)) { 893 893 mutex_unlock(&dev->struct_mutex); 894 894 return -EACCES;