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 af894584dd90..068341ad1f5f 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c | |||
| @@ -347,7 +347,9 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, | |||
| 347 | if (old_iomap == NULL && ttm == NULL) | 347 | if (old_iomap == NULL && ttm == NULL) |
| 348 | goto out2; | 348 | goto out2; |
| 349 | 349 | ||
| 350 | if (ttm->state == tt_unpopulated) { | 350 | /* TTM might be null for moves within the same region. |
| 351 | */ | ||
| 352 | if (ttm && ttm->state == tt_unpopulated) { | ||
| 351 | ret = ttm->bdev->driver->ttm_tt_populate(ttm); | 353 | ret = ttm->bdev->driver->ttm_tt_populate(ttm); |
| 352 | if (ret) { | 354 | if (ret) { |
| 353 | /* if we fail here don't nuke the mm node | 355 | /* if we fail here don't nuke the mm node |
