diff options
| author | Perry Yuan <perry.yuan@amd.com> | 2026-09-10 16:57:31 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-10-15 12:45:31 -0400 |
| commit | b5629f4a0869f4b01cfbfdf27f2c349d68c5d9d4 (patch) | |
| tree | 785e4bf33182b5939ebd2ab7e956c67d001e0704 /tools/perf/scripts/python/bin/flamegraph-report | |
| parent | 800ea86e83e137395eba54103e5c459c2bc9965f (diff) | |
drm/amdgpu: fix sched entity leak in ttm buffer entity init
amdgpu_ttm_buffer_entity_init() checks num_gart_windows after
drm_sched_entity_init() has already attached the entity to a
scheduler run-queue. Returning -EINVAL from that check leaks the
entity.
Move the ARRAY_SIZE() check before any resources are acquired.
Fixes: 2c3725572561 ("drm/amdgpu: statically assign gart windows to ttm entities")
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4000d1cdd1eacd3422267d6c8b4f1c9333b0317e)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-report')
0 files changed, 0 insertions, 0 deletions
