drm/i915: check i915_get_reset_stats_ioctl args
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 12 Nov 2013 17:49:35 +0000 (19:49 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 Nov 2013 10:51:49 +0000 (11:51 +0100)
commit661df0415e6f6bfaade501fb94cc324fa44f29b4
tree4364c8f015b8457317ce99763c2e9a86d420ecae
parentb53c8c3577150a70e94b10090f68cfe3a4b601a5
drm/i915: check i915_get_reset_stats_ioctl args

Insist that flags and pad fields are zero, so that
we can safely extend the interface in future.

Testcase: igt/gem_reset_stats/params

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c