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

Ville Syrjala ville.syrjala at linux.intel.com
Fri Nov 29 04:26:27 UTC 2024


From: Ville Syrjälä <ville.syrjala at 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 at 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(-)

-- 
2.45.2



More information about the dri-devel mailing list