aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-05-03 05:06:08 +0000
committerAlex Deucher <[email protected]>2021-05-04 21:37:57 +0000
commitc69f27137a38d24301a6b659454a91ad85dff4aa (patch)
treee0ed63039090e16766eadd6b3b218d6413f11328 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/radeon: Fix off-by-one power_state index heap overwrite (diff)
downloadkernel-c69f27137a38d24301a6b659454a91ad85dff4aa.tar.gz
kernel-c69f27137a38d24301a6b659454a91ad85dff4aa.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/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions