summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorMikita Lipski <mikita.lipski@amd.com>2020-08-26 15:00:42 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-04-09 23:52:08 +0300
commit8532467cc9019fdff9d98cfeb68b6c3eb19eadf7 (patch)
tree25672e93422654ed2a23bf7b5796cad5ad897fd6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent712343cd21ea709ba63869f74246466524172ad4 (diff)
downloadlinux-8532467cc9019fdff9d98cfeb68b6c3eb19eadf7.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions