summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-06-13 15:19:30 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-06-13 15:19:30 +0200
commit5156f1c897142171e78d0ea2c45a3aecb581fffa (patch)
treeac55a654cd9eaefa7eb045ad31cb9cfb52449b64
parent280083d4a2a12a1ff6dc1b068553a4ae8960200c (diff)
Fix fence object deref race.
-rw-r--r--linux-core/drm_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 1c7013b3..bcb5c95d 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -338,7 +338,7 @@ static void drm_bo_cleanup_refs(drm_buffer_object_t * bo, int remove_all)
DRM_FLAG_MASKED(bo->priv_flags, 0, _DRM_BO_FLAG_UNFENCED);
if (bo->fence && drm_fence_object_signaled(bo->fence, bo->fence_type)) {
- drm_fence_usage_deref_locked(dev, bo->fence);
+ drm_fence_usage_deref_unlocked(dev, bo->fence);
bo->fence = NULL;
}