Skip to content
Commit e2c34219 authored by Alice Wong's avatar Alice Wong Committed by Alex Deucher
Browse files

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: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlice Wong <shiwei.wong@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent da40bf8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment