diff options
author | Aurabindo Pillai <aurabindo.pillai@amd.com> | 2022-11-02 15:35:53 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-15 13:35:14 -0500 |
commit | 4fc1ba4aa589ca267468ad23fedef37562227d32 (patch) | |
tree | 813e34c78ea42f65060b7c323186aa02668b13fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6f8816261db9251f2635533572f95ab8e530266c (diff) |
drm/amd/display: fix array index out of bound error in bios parser
[Why&How]
Firmware headers dictate that gpio_pin array only has a size of 8. The
count returned from vbios however is greater than 8.
Fix this by not using array indexing but incrementing the pointer since
gpio_pin definition in atomfirmware.h is hardcoded to size 8
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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