diff options
author | Alex Hung <[email protected]> | 2024-05-29 14:08:44 -0600 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-06-14 16:17:17 -0400 |
commit | d281b7742662e199fbba57fbd86c6c2bdd73104a (patch) | |
tree | 075a307fa75ccafd72209897c3bc2f065a7e792b /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | dd9d8c61ccff0e3409b0bff702444f3d31684e9e (diff) |
drm/amd/display: Fix incorrect size calculation for loop in dcn401
[WHY]
fe_clk_en and be_clk_sel have size of 4 but sizeof(fe_clk_en) has
byte size 16 which is lager than the array size.
[HOW]
Use ARRAY_SIZE for calculating size.
This fixes 2 OVERRUN issues reported by Coverity.
Reviewed-by: Harry Wentland <[email protected]>
Acked-by: Zaeem Mohamed <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions