diff options
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 9e9c5d2a5c74..d73d6e3e17b2 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c | |||
@@ -654,11 +654,13 @@ int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo, | |||
654 | */ | 654 | */ |
655 | 655 | ||
656 | set_bit(TTM_BO_PRIV_FLAG_MOVING, &bo->priv_flags); | 656 | set_bit(TTM_BO_PRIV_FLAG_MOVING, &bo->priv_flags); |
657 | |||
658 | /* ttm_buffer_object_transfer accesses bo->sync_obj */ | ||
659 | ret = ttm_buffer_object_transfer(bo, &ghost_obj); | ||
657 | spin_unlock(&bdev->fence_lock); | 660 | spin_unlock(&bdev->fence_lock); |
658 | if (tmp_obj) | 661 | if (tmp_obj) |
659 | driver->sync_obj_unref(&tmp_obj); | 662 | driver->sync_obj_unref(&tmp_obj); |
660 | 663 | ||
661 | ret = ttm_buffer_object_transfer(bo, &ghost_obj); | ||
662 | if (ret) | 664 | if (ret) |
663 | return ret; | 665 | return ret; |
664 | 666 | ||