diff options
| author | Alex Hung <[email protected]> | 2024-04-16 16:22:35 -0600 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-02 16:18:17 -0400 |
| commit | b38a4815f79b87efb196cd5121579fc51e29a7fb (patch) | |
| tree | e3e5c3d4408743f321bfad51263f2ba44367283f /tools/perf/scripts/python/netdev-times.py | |
| parent | 4e70c0f5251c25885c31ee84a31f99a01f7cf50e (diff) | |
drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]
[WHY & HOW]
num_valid_sets needs to be checked to avoid a negative index when
accessing reader_wm_sets[num_valid_sets - 1].
This fixes an OVERRUN issue 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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions