Need get the new fence when we replace the old one.
Unified · Split
| @@ -343,7 +343,7 @@ void dma_resv_replace_fences(struct dma_resv *obj, uint64_t context, · 342 unmodified lines | ||
| 343 | 343 | if (old->context != context) |
| 344 | 344 | continue; |
| 345 | 345 | |
| 346 | − dma_resv_list_set(list, i, replacement, usage); | |
| 346 | + dma_resv_list_set(list, i, dma_fence_get(replacement), usage); | |
| 347 | 347 | dma_fence_put(old); |
| 348 | 348 | } |
| 349 | 349 | } |