drm/i915/dsi: defend gpio table against out of bounds access
authorJani Nikula <jani.nikula@intel.com>
Thu, 4 Feb 2016 10:50:49 +0000 (12:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 4 Feb 2016 16:30:25 +0000 (18:30 +0200)
commit5d2d0a12d3d08bf50434f0b5947bb73bac04b941
treed4d5f6b1dac3e1c580dcfc8a13a3d3aedacb793c
parent5375ce9f38291c1d725db40519465dfe89c60ea9
drm/i915/dsi: defend gpio table against out of bounds access

Do not blindly trust the VBT data used for indexing.

Cc: stable@vger.kernel.org
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/cc32d40c2b47f2d2151811855ac2c3dabab1d57d.1454582914.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c