summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-03-01 13:40:06 +1000
committerDave Airlie <airlied@redhat.com>2011-03-01 15:01:14 +1000
commit91132d6bb6481da7c8280905a5db424885c458d0 (patch)
tree3e8ca26f037be1a2f237f7aa508e9fb330caccef /drivers/gpu
parenta61f2bc47256a32c56f49f1e9b9f4468387e0299 (diff)
drm/radeon: fix up dereferencing of busy objects.
This could free things twice, just deref the GEM object and hope its enough. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c
index 8758d02cca1a..976c3b1b1b6e 100644
--- a/drivers/gpu/drm/radeon/radeon_object.c
+++ b/drivers/gpu/drm/radeon/radeon_object.c
@@ -278,7 +278,7 @@ void radeon_bo_force_delete(struct radeon_device *rdev)
mutex_lock(&bo->rdev->gem.mutex);
list_del_init(&bo->list);
mutex_unlock(&bo->rdev->gem.mutex);
- radeon_bo_unref(&bo);
+ /* this should unref the ttm bo */
drm_gem_object_unreference(&bo->gem_base);
mutex_unlock(&rdev->ddev->struct_mutex);
}