drm: fix dead lock in drm_buffer_object_transfer

main
Jerome Glisse 2007-11-19 14:37:21 +01:00
parent a74181ddb2
commit 648b5b582a
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ int drm_buffer_object_transfer(struct drm_buffer_object *bo,
INIT_LIST_HEAD(&fbo->p_mm_list); INIT_LIST_HEAD(&fbo->p_mm_list);
#endif #endif
drm_fence_reference_unlocked(&fbo->fence, bo->fence); fbo->fence = drm_fence_reference_locked(bo->fence);
fbo->pinned_node = NULL; fbo->pinned_node = NULL;
fbo->mem.mm_node->private = (void *)fbo; fbo->mem.mm_node->private = (void *)fbo;
atomic_set(&fbo->usage, 1); atomic_set(&fbo->usage, 1);