diff options
| author | Alex Hung <[email protected]> | 2024-12-17 18:51:58 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-01-10 18:42:26 +0000 |
| commit | 36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c (patch) | |
| tree | e38f4f786fa0c41724a13349f2fcc1413a702a04 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amd/display: Use HW lock mgr for PSR1 (diff) | |
| download | kernel-36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c.tar.gz kernel-36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c.zip | |
drm/amd/display: Initialize denominator defaults to 1
[WHAT & HOW]
Variables, used as denominators and maybe not assigned to other values,
should be initialized to non-zero to avoid DIVIDE_BY_ZERO, as reported
by Coverity.
Reviewed-by: Austin Zheng <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: Tom Chung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit e2c4c6c10542ccfe4a0830bb6c9fd5b177b7bbb7)
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
