1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Hamza Mahfooz 07e388aab0 drm/amd/display: prevent potential division by zero errors
There are two places in apply_below_the_range() where it's possible for
a divide by zero error to occur. So, to fix this make sure the divisor
is non-zero before attempting the computation in both cases.

Cc: stable@vger.kernel.org
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2637
Fixes: a463b26303 ("drm/amd/display: Fix frames_to_insert math")
Fixes: ded6119e82 ("drm/amd/display: Reinstate LFC optimization")
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-09-06 22:10:11 -04:00
..
amdgpu_dm drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma 2023-09-06 22:09:33 -04:00
dc drm/amd/display: limit the v_startup workaround to ASICs older than DCN3.1 2023-09-06 22:08:26 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.179.0 2023-08-15 18:08:30 -04:00
include drm/amd/display: Add vendor Id for reference 2023-08-07 17:14:09 -04:00
modules drm/amd/display: prevent potential division by zero errors 2023-09-06 22:10:11 -04:00
Kconfig drm/amd/display: Allow building DC with clang on RISC-V 2023-07-21 16:52:25 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP 2023-03-07 14:22:39 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00