aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorHamza Mahfooz <[email protected]>2023-09-05 17:27:22 +0000
committerAlex Deucher <[email protected]>2023-09-07 02:10:11 +0000
commit07e388aab042774f284a2ad75a70a194517cdad4 (patch)
tree9df91f1465923d1ecb73336cc997741a776871be /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentdrm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma (diff)
downloadkernel-07e388aab042774f284a2ad75a70a194517cdad4.tar.gz
kernel-07e388aab042774f284a2ad75a70a194517cdad4.zip
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: [email protected] Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2637 Fixes: a463b263032f ("drm/amd/display: Fix frames_to_insert math") Fixes: ded6119e825a ("drm/amd/display: Reinstate LFC optimization") Reviewed-by: Aurabindo Pillai <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions