diff options
author | Lang Yu <lang.yu@amd.com> | 2021-10-21 09:36:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 13:04:17 +0300 |
commit | 7f71a6a3bc4a35a429bbf6871f23eabfd669e485 (patch) | |
tree | 3388ee82e3b490141209b51d35bf2178b4126509 /tools/testing | |
parent | a05760ad9460cbdc5986a1b9fcfd5cd79192b53e (diff) | |
download | linux-7f71a6a3bc4a35a429bbf6871f23eabfd669e485.tar.xz |
drm/amdgpu: fix a potential memory leak in amdgpu_device_fini_sw()
[ Upstream commit a5c5d8d50ecf5874be90a76e1557279ff8a30c9e ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions