diff options
author | 2021-05-02 22:06:08 -0700 | |
---|---|---|
committer | 2021-05-10 18:06:45 -0400 | |
commit | 642f3ad00f9640a1a74c6e0da538c5f88d2d0117 (patch) | |
tree | ac09238e471a9d6f0548f09c894c65cadf42d6dc /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | drm/radeon: Fix off-by-one power_state index heap overwrite (diff) | |
download | linux-dev-642f3ad00f9640a1a74c6e0da538c5f88d2d0117.tar.xz linux-dev-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/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions