diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2007-11-19 14:37:21 +0100 |
---|---|---|
committer | Jerome Glisse <glisse@freedesktop.org> | 2007-11-19 14:39:14 +0100 |
commit | f29b2a583d6f9d2cd02d58e915a0ca1cdee0919e (patch) | |
tree | 68ac04547d68b9a87c3e956a2904763019aecf74 /linux-core/drm_bo_move.c | |
parent | e0ab2034c3d87b9a1bbd86bfccd806793ce7c5b4 (diff) |
drm: fix dead lock in drm_buffer_object_transfer
Diffstat (limited to 'linux-core/drm_bo_move.c')
-rw-r--r-- | linux-core/drm_bo_move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo_move.c b/linux-core/drm_bo_move.c index 26df46d9..97946b3c 100644 --- a/linux-core/drm_bo_move.c +++ b/linux-core/drm_bo_move.c @@ -304,7 +304,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); |