diff options
author | Kees Cook <keescook@chromium.org> | 2021-05-02 22:06:08 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-05-10 18:06:45 -0400 |
commit | 642f3ad00f9640a1a74c6e0da538c5f88d2d0117 (patch) | |
tree | ac09238e471a9d6f0548f09c894c65cadf42d6dc /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 359615251034790abaa06b7b0e5635543e01d473 (diff) | |
download | linux-642f3ad00f9640a1a74c6e0da538c5f88d2d0117.tar.gz linux-642f3ad00f9640a1a74c6e0da538c5f88d2d0117.tar.bz2 linux-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 <keescook@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions