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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:22 +0000 (15:07 -0800)
commit7a35478f900a01650f00e39423722956d04daedd
treef49473114e0439e0a892d77f3ce3cb4a2e6b3fd8
parent2f1e7d5f8f6b3f21db1423e15167e4350bd959d7
drm/i915/dsi: defend gpio table against out of bounds access

commit 4db3a2448ec8902310acb78de39b6227a9a56ac8 upstream.

Do not blindly trust the VBT data used for indexing.

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
(cherry picked from commit 5d2d0a12d3d08bf50434f0b5947bb73bac04b941)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c