drm/amdgpu: update ref_cnt before ctx free
authorJames Zhu <James.Zhu@amd.com>
Mon, 15 Aug 2022 21:21:44 +0000 (17:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:59:44 +0000 (09:59 -0400)
commit3e7c6fe38724eab767033f9d26b496bc2e815157
tree58dfb88519f35d7902341737d2e80f3f99724a17
parent9a18292d41ae201333fc4203b3e7987ce5c1de6e
drm/amdgpu: update ref_cnt before ctx free

Update ref_cnt before ctx free.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h