]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid overflowing the DP link rate arrays
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Mar 2015 15:10:37 +0000 (17:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:09 +0000 (11:48 +0100)
commit73ca8f993876f49e359c2ad9b5953e380c53b502
tree975febf171bef7206ccf9e9aed543ea3af325658
parent9e8733b55285afe082ee6b7ebbc550125b075fa6
drm/i915: Avoid overflowing the DP link rate arrays

Complain loudly if we ever attempt to overflow the the supported_rates[]
array. This should never happen since the sink_rates[] array will always
be smaller or of equal size. But should someone change that we want to
catch it without scribblign over the stack.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c