From: Dave Airlie Date: Tue, 1 Mar 2011 03:40:06 +0000 (+1000) Subject: drm/radeon: fix up dereferencing of busy objects. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=91132d6bb6481da7c8280905a5db424885c458d0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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); }