drm/i915: Forward all core DRM ioctls to core compat handling
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 13 Jul 2015 15:51:39 +0000 (16:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Jul 2015 08:15:41 +0000 (10:15 +0200)
commitac7e7ab1c3243b10b41653cc8d8536088d83b152
tree81b9e3428d02d3e470e0e8e0e0b7a1c16a1e5527
parentbbf470202d697b7d57cc3febad578ec77fd7bded
drm/i915: Forward all core DRM ioctls to core compat handling

Previously only core DRM ioctls under the DRM_COMMAND_BASE were being
forwarded, but the drm.h header suggests (and reality confirms) ones
after (and including) DRM_COMMAND_END should be forwarded as well.

We need this to correctly forward the compat ioctl for the botched-up
addfb2.1 extension.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: stable@vger.kernel.org # 4.1+
[danvet: Explain why this is suddenly needed and add cc: stable.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_ioc32.c