diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 09:55:36 +0000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-23 15:53:05 -0400 |
| commit | b4f7b4459b1b155e4c4977a6482b5df2cf08758c (patch) | |
| tree | f09a1f2c556ebca6ee838f00c9a51cc4f0adedee /tools/perf/scripts/python | |
| parent | a997baa61179b450bd55c4810c7ccfed3b753a54 (diff) | |
| download | linux-next-b4f7b4459b1b155e4c4977a6482b5df2cf08758c.tar.gz linux-next-b4f7b4459b1b155e4c4977a6482b5df2cf08758c.zip | |
drm/amdgpu: Fix last_update fence leak in amdgpu_vm_init()
amdgpu_vm_init() initializes vm->last_update, vm->last_unlocked and
vm->last_tlb_flush with references to the stub fence taken via
dma_fence_get_stub(). The error label at the end of the function
releases the last_unlocked and last_tlb_flush references with
dma_fence_put(), but the reference stored in vm->last_update is never
dropped, so whenever the page table root creation, the reservation of
the root BO or the PASID registration fails, the stub fence reference
leaks.
Drop the vm->last_update reference together with the other stub fence
references on the error path.
Fixes: 187916e6ed9d ("drm/amdgpu: install stub fence into potential unused fence pointers")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e7979c84fc05a176bdf855ee664871b1648404c9)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
