]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Hook user-extensions upto MMAP_OFFSET_IOCTL
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Dec 2019 18:06:28 +0000 (18:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Dec 2019 18:06:28 +0000 (18:06 +0000)
commit2fcef9ebb2634e199b4ea3704f18bb8a817d42dc
treebc4b4b007951a705a553ca8aabdf2fe425f6e169
parent1daacd6c6b9b14220746ee3e9cdb1354a7a48d0b
drm/i915/gem: Hook user-extensions upto MMAP_OFFSET_IOCTL

Call i915_user_extensions() to validate the arg->extensions pointer, and
so return consistent error numbers for the future.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191204162803.3841140-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c