]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/ttm/ttm_bo.c
Merge v5.8-rc6 into drm-next
[J-linux.git] / drivers / gpu / drm / ttm / ttm_bo.c
index 0768a054a91666c66e8d7bc624cc7d03b286660e..b03747717ec74368cee5a22574e60672d7487546 100644 (file)
@@ -880,8 +880,10 @@ static int ttm_bo_add_move_fence(struct ttm_buffer_object *bo,
        if (!fence)
                return 0;
 
-       if (no_wait_gpu)
+       if (no_wait_gpu) {
+               dma_fence_put(fence);
                return -EBUSY;
+       }
 
        dma_resv_add_shared_fence(bo->base.resv, fence);
 
This page took 0.028039 seconds and 4 git commands to generate.