]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 8 Feb 2016 09:33:43 +0000 (11:33 +0200)
commit4db3a2448ec8902310acb78de39b6227a9a56ac8
tree3521448d76f756cc0187e7fe11f683118ae781da
parent949d0b51bebce8e26cf9b57dbb59178ad3dc9832
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
(cherry picked from commit 5d2d0a12d3d08bf50434f0b5947bb73bac04b941)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c