mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/amdgpu: fix memory leak in mes self test
[ Upstream commit 31d7c3a4fc ]
The fences associated with mes queue have to be freed
up during amdgpu_ring_fini.
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9f55d30054
commit
ce3288d8d6
@@ -361,6 +361,8 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)
|
|||||||
amdgpu_bo_free_kernel(&ring->ring_obj,
|
amdgpu_bo_free_kernel(&ring->ring_obj,
|
||||||
&ring->gpu_addr,
|
&ring->gpu_addr,
|
||||||
(void **)&ring->ring);
|
(void **)&ring->ring);
|
||||||
|
} else {
|
||||||
|
kfree(ring->fence_drv.fences);
|
||||||
}
|
}
|
||||||
|
|
||||||
dma_fence_put(ring->vmid_wait);
|
dma_fence_put(ring->vmid_wait);
|
||||||
|
|||||||
Reference in New Issue
Block a user