diff options
| author | Mikita Lipski <[email protected]> | 2020-08-26 12:00:42 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-09 20:52:08 +0000 |
| commit | 8532467cc9019fdff9d98cfeb68b6c3eb19eadf7 (patch) | |
| tree | 25672e93422654ed2a23bf7b5796cad5ad897fd6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amd/display: Add function and debugfs to dump DCC_EN bit (diff) | |
| download | kernel-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
