drm/amdgpu: fix potential memory leak during navi12 deinitialization
authorJiawei Gu <Jiawei.Gu@amd.com>
Tue, 29 Dec 2020 12:35:33 +0000 (20:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:35:26 +0000 (11:35 -0500)
commit0d232dada3e4a0606e53873f90b2e6dc0c0c5b9b
treee0cc111ec8f2240814d5a52c3738b185c8fc47ab
parent4b6b7437b19d3116d409e747582c99152725288d
drm/amdgpu: fix potential memory leak during navi12 deinitialization

Navi12 HDCP & DTM deinitialization needs continue to free bo if already
created though initialized flag is not set.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c