drm/i915: Fix bounds check in intel_get_shared_dpll_id()
authorImre Deak <imre.deak@intel.com>
Wed, 26 Feb 2020 20:34:43 +0000 (22:34 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 2 Mar 2020 17:36:21 +0000 (19:36 +0200)
commitb48f4b3be9206b9f88bee16665eb785636a0cb38
tree5a3124ec12afec38f2a02dc243a8788489b864bb
parent7a9ccdd1e02533f3d8e866fdee97f4bc2069127b
drm/i915: Fix bounds check in intel_get_shared_dpll_id()

Fix an off-by-one error in the upper-bound check and while at it clear
up a bit the function.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200226203455.23032-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c