drm/ttm: drop extra ttm_bo_put in ttm_bo_cleanup_refs
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Thu, 16 Mar 2023 07:26:47 +0000 (08:26 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Mar 2023 06:06:58 +0000 (16:06 +1000)
That was accidentially left over when we switched to the delayed delete
worker.

Suggested-by: Matthew Auld <matthew.william.auld@gmail.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 9bff18d13473 ("drm/ttm: use per BO cleanup workers")
Reported-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230316072647.406707-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c

index 326a3d1..c286c6f 100644 (file)
@@ -295,8 +295,6 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo,
        if (unlock_resv)
                dma_resv_unlock(bo->base.resv);
 
-       ttm_bo_put(bo);
-
        return 0;
 }