1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-20 12:14:24 +00:00

drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib

From Srinivasan Shanmugam
39820864eacd886f1a6f817414fb8f9ea3e9a2b4 in linux-6.18.y/6.18.21
7150850146ebfa4ca998f653f264b8df6f7f85be in mainline linux
This commit is contained in:
jsg
2026-04-07 09:38:36 +00:00
parent 8237b8a7cb
commit 86b8b6dfa4

View File

@@ -692,9 +692,9 @@ int amdgpu_amdkfd_submit_ib(struct amdgpu_device *adev,
goto err_ib_sched;
}
/* Drop the initial kref_init count (see drm_sched_main as example) */
dma_fence_put(f);
ret = dma_fence_wait(f, false);
/* Drop the returned fence reference after the wait completes */
dma_fence_put(f);
err_ib_sched:
amdgpu_job_free(job);