summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-09-04 19:35:05 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-09-09 23:10:10 +0300
commita525fa37aac36c4591cc8b07ae8957862415fbd5 (patch)
treeabfb63d66678cec8a50695707e3edb72b03a4ac9 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent2fd653b9bb5aacec5d4c421ab290905898fe85a2 (diff)
downloadlinux-a525fa37aac36c4591cc8b07ae8957862415fbd5.tar.xz
drm/amdgpu: fix a memory leak in fence cleanup when unloading
Commit b61badd20b44 ("drm/amdgpu: fix usage slab after free") reordered when amdgpu_fence_driver_sw_fini() was called after that patch, amdgpu_fence_driver_sw_fini() effectively became a no-op as the sched entities we never freed because the ring pointers were already set to NULL. Remove the NULL setting. Reported-by: Lin.Cao <lincao12@amd.com> Cc: Vitaly Prosyak <vitaly.prosyak@amd.com> Cc: Christian König <christian.koenig@amd.com> Fixes: b61badd20b44 ("drm/amdgpu: fix usage slab after free") Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions