diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2025-09-04 19:35:05 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-09 23:38:26 +0300 |
commit | 7838fb5f119191403560eca2e23613380c0e425e (patch) | |
tree | 9621f5869499db0a90533017a347b608803d6ee6 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 53503556273a5ead8b75534085e2dcb46e96f883 (diff) | |
download | linux-7838fb5f119191403560eca2e23613380c0e425e.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>
(cherry picked from commit a525fa37aac36c4591cc8b07ae8957862415fbd5)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions