drm/i915: Make hpd arrays big enough to avoid out of bounds access
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 9 Jan 2015 12:21:12 +0000 (14:21 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Jan 2015 23:44:38 +0000 (00:44 +0100)
commit7c7e10db4698c38403bae9af3b0a684724d93472
tree44614381f4c2c8d2ddbb6eca9a08bbd068abe3b9
parente85a5c7989c5be8fe30acc35eba9fb54b3450f36
drm/i915: Make hpd arrays big enough to avoid out of bounds access

intel_hpd_irq_handler() walks the passed in hpd[] array assuming it
contains HPD_NUM_PINS elements. Currently that's not true as we don't
specify an explicit size for the arrays when initializing them. Avoid
the out of bounds accesses by specifying the size for the arrays.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c