diff options
| author | Alex Hung <alex.hung@amd.com> | 2024-04-19 20:23:36 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-02 16:18:16 -0400 |
| commit | 3941a3aa4b653b69876d894d08f3fff1cc965267 (patch) | |
| tree | 26e3ef66748b5dc60a9559f54b2c25dff110a382 /drivers/gpu/drm/amd/amdgpu/atom.h | |
| parent | cf8b16857db702ceb8d52f9219a4613363e2b1cf (diff) | |
drm/amd/display: Fix incorrect size calculation for loop
[WHY]
fe_clk_en has size of 5 but sizeof(fe_clk_en) has byte size 20 which is
lager than the array size.
[HOW]
Divide byte size 20 by its element size.
This fixes 2 OVERRUN issues reported by Coverity.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.h')
0 files changed, 0 insertions, 0 deletions
