summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atom.h
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-04-19 20:23:36 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-05-02 16:18:16 -0400
commit3941a3aa4b653b69876d894d08f3fff1cc965267 (patch)
tree26e3ef66748b5dc60a9559f54b2c25dff110a382 /drivers/gpu/drm/amd/amdgpu/atom.h
parentcf8b16857db702ceb8d52f9219a4613363e2b1cf (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