drm/i915: Reject invalid-pad for context-destroy and -create ioctls
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Feb 2016 16:45:59 +0000 (16:45 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Feb 2016 17:26:52 +0000 (18:26 +0100)
commitb31e51360e88f8f9831a153cf72d1aced952dffb
tree113ca48d84fe25b858108b960990ade02740dbef
parent22824fac947bf09959490ea7e1bed2aa7904b65f
drm/i915: Reject invalid-pad for context-destroy and -create ioctls

Unknown parameters, especially structure padding, are expected to invoke
rejection with -EINVAL.

v2: similar issue exists for context-create

Testcase: igt/gem_ctx_create/invalid-pad
Testcase: igt/gem_ctx_bad_destroy/invalid-pad
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89602
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93999
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1454690759-31201-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c