diff options
author | Joshua Aberback <joshua.aberback@amd.com> | 2024-03-15 11:07:42 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-04-10 04:59:37 +0300 |
commit | 60df5628144b59d5876f8ceac624a7661c336665 (patch) | |
tree | e73b50b774ba7080d98322ed09ce17a8592713c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8b2cb32cf0c613fd937ebb49a331798985f50826 (diff) | |
download | linux-60df5628144b59d5876f8ceac624a7661c336665.tar.xz |
drm/amd/display: handle invalid connector indices
[Why]
The function to count the number of valid connectors does not
guarantee that the first n indices are valid, only that there
exist n valid indices. When invalid indices are present, this
results in later valid connectors being missed, as processing
would end after checking n indices.
[How]
- count valid indices separately from total indices examined
- add explicit definition of MAX_LINKS
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions