Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Forward all core DRM ioctls to core compat handling
@ 2015-07-14 10:13 Tvrtko Ursulin
  2015-07-14 10:13 ` [PATCH 2/2] drm: Provide compat ioctl for addfb2.1 Tvrtko Ursulin
  0 siblings, 1 reply; 4+ messages in thread
From: Tvrtko Ursulin @ 2015-07-14 10:13 UTC (permalink / raw)
  To: Intel-gfx; +Cc: Tvrtko Ursulin, Daniel Vetter, stable

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

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.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/i915/i915_ioc32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_ioc32.c b/drivers/gpu/drm/i915/i915_ioc32.c
index 176de6322e4d..23aa04cded6b 100644
--- a/drivers/gpu/drm/i915/i915_ioc32.c
+++ b/drivers/gpu/drm/i915/i915_ioc32.c
@@ -204,7 +204,7 @@ long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 	drm_ioctl_compat_t *fn = NULL;
 	int ret;
 
-	if (nr < DRM_COMMAND_BASE)
+	if (nr < DRM_COMMAND_BASE || nr >= DRM_COMMAND_END)
 		return drm_compat_ioctl(filp, cmd, arg);
 
 	if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(i915_compat_ioctls))
-- 
2.4.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-15  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 10:13 [PATCH 1/2] drm/i915: Forward all core DRM ioctls to core compat handling Tvrtko Ursulin
2015-07-14 10:13 ` [PATCH 2/2] drm: Provide compat ioctl for addfb2.1 Tvrtko Ursulin
2015-07-14 10:26   ` [Intel-gfx] " Daniel Vetter
2015-07-15  9:17   ` [PATCH 2/2 v3] " Tvrtko Ursulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox