mirror_ubuntu-kernels/drivers/gpu/drm/amd
Mikita Lipski 8532467cc9 drm/amd/display: Set initial value to a divider
[why/how]
Due to compiler optimization the values would be
passed to the division function uninitialized
causing a div by zero. Initialize the numerator
and denominator to 0 and 1 to prevent division
by zero.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-04-09 16:52:08 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: split gfx callbacks into ras and non-ras ones 2021-04-09 16:51:22 -04:00
amdkfd drm/amdkfd: Avoid null pointer in SMI event 2021-04-09 16:50:42 -04:00
display drm/amd/display: Set initial value to a divider 2021-04-09 16:52:08 -04:00
include drm/amd/display: Interface for LTTPR interop 2021-04-09 16:48:25 -04:00
pm drm/amdgpu/vangogh: don't check for dpm in is_dpm_running when in suspend 2021-04-09 16:49:18 -04:00