summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-03-01 06:40:06 +0300
committerDave Airlie <airlied@redhat.com>2011-03-01 08:01:14 +0300
commit91132d6bb6481da7c8280905a5db424885c458d0 (patch)
tree3e8ca26f037be1a2f237f7aa508e9fb330caccef
parenta61f2bc47256a32c56f49f1e9b9f4468387e0299 (diff)
downloadlinux-91132d6bb6481da7c8280905a5db424885c458d0.tar.xz
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>
-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);
}