Skip to content

Commit

Permalink
drm/radeon: fix up dereferencing of busy objects.
Browse files Browse the repository at this point in the history
This could free things twice, just deref the GEM object
and hope its enough.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Mar 1, 2011
1 parent a61f2bc commit 91132d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 91132d6

Please sign in to comment.