aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2023-03-23 19:07:06 +0000
committerAlex Deucher <[email protected]>2023-04-11 22:03:43 +0000
commitd116db180decec1b21bba31d2ff495ac4d8e1b83 (patch)
tree6bfc0b57fd6548477ce1d17e74ea87bb3e1b2985 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amd/display: [FW Promotion] Release 0.0.161.0 (diff)
downloadkernel-d116db180decec1b21bba31d2ff495ac4d8e1b83.tar.gz
kernel-d116db180decec1b21bba31d2ff495ac4d8e1b83.zip
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 4fc1ba4aa589 ("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: [email protected] Link: https://bugzilla.kernel.org/show_bug.cgi?id=214853 Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2473 Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions