aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorMikita Lipski <[email protected]>2020-08-26 12:00:42 +0000
committerAlex Deucher <[email protected]>2021-04-09 20:52:08 +0000
commit8532467cc9019fdff9d98cfeb68b6c3eb19eadf7 (patch)
tree25672e93422654ed2a23bf7b5796cad5ad897fd6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amd/display: Add function and debugfs to dump DCC_EN bit (diff)
downloadkernel-8532467cc9019fdff9d98cfeb68b6c3eb19eadf7.tar.gz
kernel-8532467cc9019fdff9d98cfeb68b6c3eb19eadf7.zip
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 <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions