diff options
| author | Alex Hung <[email protected]> | 2024-04-19 20:23:36 -0600 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-02 16:18:16 -0400 |
| commit | 3941a3aa4b653b69876d894d08f3fff1cc965267 (patch) | |
| tree | 26e3ef66748b5dc60a9559f54b2c25dff110a382 /tools/perf/scripts/python/flamegraph.py | |
| 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 <[email protected]>
Acked-by: Tom Chung <[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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions