aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_bo_move.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-02-08 19:06:39 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-02-08 19:06:39 +0100
commita0ed808d05a7965366e329a6e8f4e538350b9c23 (patch)
treef55aae7fce246cf28a1e544759676718c25e8a2c /linux-core/drm_bo_move.c
parentbf8f46d4c64eb5b66814223f7e5ddb8d8e7a555e (diff)
Don't create a ttm just to copy from.
Diffstat (limited to 'linux-core/drm_bo_move.c')
-rw-r--r--linux-core/drm_bo_move.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_bo_move.c b/linux-core/drm_bo_move.c
index 4ed3392d..9bfb3ef1 100644
--- a/linux-core/drm_bo_move.c
+++ b/linux-core/drm_bo_move.c
@@ -219,6 +219,8 @@ int drm_bo_move_memcpy(drm_buffer_object_t *bo,
if (old_iomap == NULL && new_iomap == NULL)
goto out2;
+ if (old_iomap == NULL && ttm == NULL)
+ goto out2;
add = 0;
dir = 1;