]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Correctly reject invalid flags for wait_ioctl
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Sep 2014 13:31:26 +0000 (15:31 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Oct 2014 14:34:14 +0000 (16:34 +0200)
commit11b5d5112c51f8cf4ac51f9f063bb76992a5ebe7
treec226d15b7040fe6f335cd68ad14346ab15f4e0bb
parent43d942a780efe72b426d30dc112f5eb2fc7eec3a
drm/i915: Correctly reject invalid flags for wait_ioctl

Not having checks for this isn't good.

I've checked igt and libdrm and they all already clear flags properly.
So we're lucky and should be able to sneak this ABI clarification in.

Testcase: igt/gem_wait/invalid-flags
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85280
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c