aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-05-03 05:06:08 +0000
committerAlex Deucher <[email protected]>2021-05-10 22:06:45 +0000
commit642f3ad00f9640a1a74c6e0da538c5f88d2d0117 (patch)
treeac09238e471a9d6f0548f09c894c65cadf42d6dc /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parentdrm/radeon: Fix off-by-one power_state index heap overwrite (diff)
downloadkernel-642f3ad00f9640a1a74c6e0da538c5f88d2d0117.tar.gz
kernel-642f3ad00f9640a1a74c6e0da538c5f88d2d0117.zip
drm/radeon: Avoid power table parsing memory leaks
Avoid leaving a hanging pre-allocated clock_info if last mode is invalid, and avoid heap corruption if no valid modes are found. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=211537 Fixes: 6991b8f2a319 ("drm/radeon/kms: fix segfault in pm rework") Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions