commit | c69f27137a38d24301a6b659454a91ad85dff4aa | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Sun May 02 22:06:08 2021 -0700 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue May 04 17:37:57 2021 -0400 |
tree | e0ed63039090e16766eadd6b3b218d6413f11328 | |
parent | 5bbf219328849e83878bddb7c226d8d42e84affc [diff] |
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>