Commit 91132d6b authored by Dave Airlie's avatar Dave Airlie

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: default avatarDave Airlie <airlied@redhat.com>
parent a61f2bc4
...@@ -278,7 +278,7 @@ void radeon_bo_force_delete(struct radeon_device *rdev) ...@@ -278,7 +278,7 @@ void radeon_bo_force_delete(struct radeon_device *rdev)
mutex_lock(&bo->rdev->gem.mutex); mutex_lock(&bo->rdev->gem.mutex);
list_del_init(&bo->list); list_del_init(&bo->list);
mutex_unlock(&bo->rdev->gem.mutex); mutex_unlock(&bo->rdev->gem.mutex);
radeon_bo_unref(&bo); /* this should unref the ttm bo */
drm_gem_object_unreference(&bo->gem_base); drm_gem_object_unreference(&bo->gem_base);
mutex_unlock(&rdev->ddev->struct_mutex); mutex_unlock(&rdev->ddev->struct_mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment