drm/i915/dp: Sanitize link common rate array lookups
authorImre Deak <imre.deak@intel.com>
Mon, 18 Oct 2021 09:41:54 +0000 (12:41 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Oct 2021 09:20:40 +0000 (12:20 +0300)
commitce679dea955e1b6670a8d92b8ac4c17b22db3fa0
tree67231e5aa01dceb2bce3bf9b10e1699a20d00423
parentcaae4fb537d8437b9290d8a1010adfaf174b29e6
drm/i915/dp: Sanitize link common rate array lookups

Add an assert that lookups from the intel_dp->common_rates[] array
are always valid.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018094154.1407705-7-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c