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)
commit126d5de38542d47d5d8385ce374e33c2a7f34e51
treebc4b4b007951a705a553ca8aabdf2fe425f6e169
parent780ccb5a5a43a7787b7cbdc49f7660232fd26aaf
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