diff options
| author | Rafael Mendonca <[email protected]> | 2022-10-17 21:53:57 -0300 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-10-18 14:53:23 -0400 |
| commit | 8f8033d5663b18e6efb33feb61f2287a04605ab5 (patch) | |
| tree | 086dd6f1dd2e5b48c3edbd8614c555ca1fb51fb9 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | df768a9770271b0d9faab25f42dfc7bdec87b21c (diff) | |
drm/amdgpu/powerplay/psm: Fix memory leak in power state init
Commit 902bc65de0b3 ("drm/amdgpu/powerplay/psm: return an error in power
state init") made the power state init function return early in case of
failure to get an entry from the powerplay table, but it missed to clean up
the allocated memory for the current power state before returning.
Fixes: 902bc65de0b3 ("drm/amdgpu/powerplay/psm: return an error in power state init")
Reviewed-by: Evan Quan <[email protected]>
Signed-off-by: Rafael Mendonca <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions