summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDillon Varone <dillon.varone@amd.com>2025-07-10 20:57:37 -0400
committerAlex Deucher <alexander.deucher@amd.com>2025-07-28 16:24:05 -0400
commit3556dac8289456bc8b28670546b969f543967856 (patch)
tree29cba8405c807a6de2c2e68c20c3bacd22ccd4a7 /rust/helpers/helpers.c
parentba0f4c4c0f9d0f90300578fc8d081f43be281a71 (diff)
drm/amd/display: Fix divide by zero when calculating min ODM factor
[WHY&HOW] If the debug option is set to disable_dsc the max slice width and/or dispclk can be zero. This causes a divide by zero when calculating the min ODM combine factor. Add a check to ensure they are valid first. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions