From: Jonathan Kim Date: Thu, 28 Jul 2022 16:36:09 +0000 (-0400) Subject: drm/amdgpu: fix hive reference leak when reflecting psp topology info X-Git-Tag: v6.1-rc5~617^2~1^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ff186ff32997049a6d263031819517eab4e93aa;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: fix hive reference leak when reflecting psp topology info Hives that require psp topology info to be reflected will leak hive reference so fix it. Signed-off-by: Jonathan Kim Reviewed-by: Shaoyun Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 3ee363bfbac2..6c23e89366bf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -1292,6 +1292,8 @@ static void psp_xgmi_reflect_topology_info(struct psp_context *psp, break; } + + amdgpu_put_xgmi_hive(hive); } int psp_xgmi_get_topology_info(struct psp_context *psp,