Skip to content

Commit 72db41c

Browse files
drm/ttm: fix warning after moving resource to ghost obj
After we moved the resource to the ghost the bo->resource pointer needs to be reset since the owner of the resource is now the ghost. Signed-off-by: Christian König <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b8be9e1 commit 72db41c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/ttm/ttm_bo_util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ static int ttm_bo_move_to_ghost(struct ttm_buffer_object *bo,
507507
ghost_obj->ttm = NULL;
508508
else
509509
bo->ttm = NULL;
510+
bo->resource = NULL;
510511

511512
dma_resv_unlock(&ghost_obj->base._resv);
512513
ttm_bo_put(ghost_obj);

0 commit comments

Comments
 (0)