1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules
Hamza Mahfooz 084f658ece 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 14:32:39 -04:00
..
color drm/amd/display: PQ regamma end point 2023-08-30 14:58:38 -04:00
freesync drm/amd/display: prevent potential division by zero errors 2023-09-06 14:32:39 -04:00
hdcp drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP 2023-03-07 14:22:39 -05:00
inc drm/amd/display: Updating Video Format Fall Back Policy. 2023-02-28 14:29:35 -05:00
info_packet drm/amd/display: Update adaptive sync infopackets for replay 2023-08-15 18:08:30 -04:00
power drm/amd/display: Add Freesync Panel DM code 2023-08-07 17:14:07 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00