summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorAlice Wong <shiwei.wong@amd.com>2022-04-27 21:03:54 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:55:07 -0400
commite2c34219d16e8c3710278b4e23ebd5bc1ec7b804 (patch)
treefb52908aebcf0d22250faef801727731f501a202 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentda40bf8f9376370b5bc2fda07aadaaddc308b1eb (diff)
drm/amdgpu/psp: deallocate memory when psp_load_fw failed
psp_load_fw failure would cause memory leak for psp tmr and psp ring because psp_hw_init is not called as psp block is not fully initialized. Clean up psp tmr and psp ring when psp_load_fw fail by calling psp_free_shared_bufs and psp_ring_destroy. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alice Wong <shiwei.wong@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions