diff options
author | Lang Yu <lang.yu@amd.com> | 2021-10-21 14:36:36 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-28 14:26:12 -0400 |
commit | a5c5d8d50ecf5874be90a76e1557279ff8a30c9e (patch) | |
tree | 82942545bb1b8d8c488a102dc2d4a43df965ead6 /drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | |
parent | 68df0f195a689bbb0f92bfeadee6edd90c79c31f (diff) |
drm/amdgpu: fix a potential memory leak in amdgpu_device_fini_sw()
amdgpu_fence_driver_sw_fini() should be executed before
amdgpu_device_ip_fini(), otherwise fence driver resource
won't be properly freed as adev->rings have been tore down.
Fixes: 72c8c97b1522 ("drm/amdgpu: Split amdgpu_device_fini into early and late")
Signed-off-by: Lang Yu <lang.yu@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/psp_v11_0.c')
0 files changed, 0 insertions, 0 deletions