linux/drivers/gpu/drm/amd/display/dc/bios
Mario Limonciello d116db180d drm/amd: Fix an out of bounds error in BIOS parser
The array is hardcoded to 8 in atomfirmware.h, but firmware provides
a bigger one sometimes. Deferencing the larger array causes an out
of bounds error.

commit 4fc1ba4aa5 ("drm/amd/display: fix array index out of bound error
in bios parser") fixed some of this, but there are two other cases
not covered by it.  Fix those as well.

Reported-by: erhard_f@mailbox.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=214853
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2473
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-04-11 18:03:43 -04:00
..
dce60 drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
dce80
dce110 drm/amd/display: Delete dead code in command_table_helper 2019-08-23 11:37:04 -05:00
dce112 drm/amdgpu/display: remove dal_cmd_tbl_helper_dcn2_get_table2 2020-10-30 01:02:07 -04:00
Makefile drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
bios_parser.c drm/amd/display: refactor ddc logic from dc_link_ddc to link_ddc 2023-01-13 14:57:40 -05:00
bios_parser.h
bios_parser2.c drm/amd: Fix an out of bounds error in BIOS parser 2023-04-11 18:03:43 -04:00
bios_parser2.h
bios_parser_common.c drm/amd/display: Add support for USBC connector 2022-03-31 23:05:53 -04:00
bios_parser_common.h
bios_parser_helper.c drm/amd/display: remove variable active_disp 2021-06-04 12:40:01 -04:00
bios_parser_helper.h drm/amd/display: add a func to disable accelerated mode 2021-03-23 23:33:36 -04:00
bios_parser_interface.c
bios_parser_types_internal.h
bios_parser_types_internal2.h drm/amd/display: Add dependant changes for DCN32/321 2022-06-03 16:43:38 -04:00
command_table.c drm/amd/display: Fix USBC link creation 2022-06-03 16:43:38 -04:00
command_table.h
command_table2.c drm/amd/display: Skip backlight control delay on external powered links 2023-01-17 15:40:28 -05:00
command_table2.h drm/amd/display: Skip backlight control delay on external powered links 2023-01-17 15:40:28 -05:00
command_table_helper.c drm/amd/display/dc/bios/command_table_helper: Fix function name for 'dal_cmd_table_helper_transmitter_bp_to_atom()' 2021-05-27 12:33:51 -04:00
command_table_helper.h drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
command_table_helper2.c drm/amd/display: Enable DCN314 in DC 2022-07-13 20:57:05 -04:00
command_table_helper2.h drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
command_table_helper_struct.h