OSDN Git Service

drm/i915/dpll: replace BUG_ON() with drm_WARN_ON()
authorJani Nikula <jani.nikula@intel.com>
Tue, 30 Aug 2022 09:34:08 +0000 (12:34 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 31 Aug 2022 15:33:55 +0000 (18:33 +0300)
commitb801a98f81bf72884de2e6c8409fd3fea5cc3f67
treeadf11a579d0d054f60cf7a1616305096eb2223d4
parent99f37216b36622343b8f1eb625921a9888054a9b
drm/i915/dpll: replace BUG_ON() with drm_WARN_ON()

Avoid BUG_ON(). Actually check the dpll count and bail out loudly with
drm_WARN_ON() from the loop before overflowing
i915->dpll.shared_dplls[].

v2: Rebase

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220830093411.1511040-2-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c