drm/ttm: fix warning after moving resource to ghost obj
Subsystems (3)
PATCH 1/1 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 resetted since the owner of the resource is now the ghost.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/ttm/ttm_bo_util.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/ttm/ttm_bo_util.c +1 -0
@@ -603,6 +603,7 @@ static int ttm_bo_move_to_ghost(struct ttm_buffer_object *bo, ghost_obj->ttm =NULL ; else bo->ttm = NULL; + bo->resource =NULL ;dma_resv_unlock (&ghost_obj->base._resv);ttm_bo_put (ghost_obj);
Signature · 1 line
2.25.1
Quoted 2 lines · Christian König
After we moved the resource to the ghost the
bo->resourcepointer needs to be resetted since the owner of the resource is now the ghost.
s/resetted/reset/
Quoted 1 line
Signed-off-by Christian König <[email protected]>
Reviewed-by Thomas Hellström <[email protected]>