Skip to content
Snippets Groups Projects
Commit 11fea16a authored by Mario Limonciello's avatar Mario Limonciello Committed by Linux Infrastructure
Browse files

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 4fc1ba4a ("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: default avatar <erhard_f@mailbox.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=214853
Link: drm/amd#2473


Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
parent c8039550
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment