commit | 8532467cc9019fdff9d98cfeb68b6c3eb19eadf7 | [log] [tgz] |
---|---|---|
author | Mikita Lipski <mikita.lipski@amd.com> | Wed Aug 26 08:00:42 2020 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri Apr 09 16:52:08 2021 -0400 |
tree | 25672e93422654ed2a23bf7b5796cad5ad897fd6 | |
parent | 712343cd21ea709ba63869f74246466524172ad4 [diff] |
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>