We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ee9e0 commit 9f8b370Copy full SHA for 9f8b370
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -1220,10 +1220,13 @@ static int amdgpu_cs_sync_rings(struct amdgpu_cs_parser *p)
1220
* next job actually sees the results from the previous one
1221
* before we start executing on the same scheduler ring.
1222
*/
1223
- if (!s_fence || s_fence->sched != sched)
+ if (!s_fence || s_fence->sched != sched) {
1224
+ dma_fence_put(fence);
1225
continue;
1226
+ }
1227
1228
r = amdgpu_sync_fence(&p->gang_leader->explicit_sync, fence);
1229
1230
if (r)
1231
return r;
1232
}
0 commit comments