diff options
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo.c')
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index a9151337d5b..52b20b12c83 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -434,6 +434,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,  			bo->mem = tmp_mem;  			bdev->driver->move_notify(bo, mem);  			bo->mem = *mem; +			*mem = tmp_mem;  		}  		goto out_err; @@ -579,7 +580,7 @@ static int ttm_bo_cleanup_refs_and_unlock(struct ttm_buffer_object *bo,  		 * at this point the buffer should be dead, so  		 * no new sync objects can be attached.  		 */ -		sync_obj = driver->sync_obj_ref(&bo->sync_obj); +		sync_obj = driver->sync_obj_ref(bo->sync_obj);  		spin_unlock(&bdev->fence_lock);  		atomic_set(&bo->reserved, 0);  |