summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2007-11-19 14:37:21 +0100
committerJerome Glisse <glisse@freedesktop.org>2007-11-19 14:37:21 +0100
commit648b5b582a4fc5a925e7c3010d5a21b24daca572 (patch)
tree514ec468c3e99e2d1abad260675287e6d8ee1a39 /linux-core
parenta74181ddb2776d7ffbcb10d8103950bd3d88b00d (diff)
drm: fix dead lock in drm_buffer_object_transfer
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo_move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo_move.c b/linux-core/drm_bo_move.c
index 2aba3271..971b4af8 100644
--- a/linux-core/drm_bo_move.c
+++ b/linux-core/drm_bo_move.c
@@ -303,7 +303,7 @@ int drm_buffer_object_transfer(struct drm_buffer_object *bo,
INIT_LIST_HEAD(&fbo->p_mm_list);
#endif
- drm_fence_reference_unlocked(&fbo->fence, bo->fence);
+ fbo->fence = drm_fence_reference_locked(bo->fence);
fbo->pinned_node = NULL;
fbo->mem.mm_node->private = (void *)fbo;
atomic_set(&fbo->usage, 1);