diff options
| author | Jack Xiao <[email protected]> | 2023-04-21 06:20:38 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-04-24 22:16:02 +0000 |
| commit | 31d7c3a4fc3d312a0646990767647925d5bde540 (patch) | |
| tree | 1a06762c3ab7b1fba319824ba37aa00c80d9f3f4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | drm/amdgpu/gfx11: add FW version check for new CP GFX shadow feature (diff) | |
| download | kernel-31d7c3a4fc3d312a0646990767647925d5bde540.tar.gz kernel-31d7c3a4fc3d312a0646990767647925d5bde540.zip | |
drm/amdgpu: fix memory leak in mes self test
The fences associated with mes queue have to be freed
up during amdgpu_ring_fini.
Signed-off-by: Jack Xiao <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c index f676c236b657..eaf0f82757ef 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c @@ -390,6 +390,8 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring) amdgpu_bo_free_kernel(&ring->ring_obj, &ring->gpu_addr, (void **)&ring->ring); + } else { + kfree(ring->fence_drv.fences); } dma_fence_put(ring->vmid_wait); |
