Skip to content
Snippets Groups Projects
Forked from Panfrost / linux
Source project has a limited visibility.
user avatar
Hamza Mahfooz authored
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: drm/amd#2637


Fixes: a463b263 ("drm/amd/display: Fix frames_to_insert math")
Fixes: ded6119e ("drm/amd/display: Reinstate LFC optimization")
Reviewed-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
084f658e
History
Name Last commit Last update
..