]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3631c7288cb1e29cb710acb9fd13d7fc3e947ba
tree5a3124ec12afec38f2a02dc243a8788489b864bb
parent9233b8e8cc2d2a3cd52ea7dc82faf10e599178fa
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