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>
Wed, 6 Jan 2021 21:22:29 +0000 (16:22 -0500)
commite6d5c64efaa34aae3815a9afeb1314a976142e83
tree8f2858a98d844cd70a485fb4026386ad10ed4761
parent4f6a05501eb9c57fb4c9efed70840aee523a393b
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