mbox series

[0/2] drm/modes: Fix div-by-zero in drm_mode_vrefresh()

Message ID 20241129042629.18280-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm/modes: Fix div-by-zero in drm_mode_vrefresh() | expand

Message

Ville Syrjala Nov. 29, 2024, 4:26 a.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Fix a potential div-by-zero in drm_mode_vrefresh()

TODO: should probably make drm_mode_setcrtc() not even print the
      (potentially partially) converted mode, and instead print
      the original umode..

Test-with: 20241128190927.26033-1-ville.syrjala@linux.intel.com

Ville Syrjälä (2):
  drm/modes: Avoid divide by zero harder in drm_mode_vrefresh()
  drm/modes: Fix drm_mode_vrefres() docs

 drivers/gpu/drm/drm_modes.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)