Skip to content

Commit

Permalink
drm/radeon: remove taking mclk_lock from radeon_bo_unref
Browse files Browse the repository at this point in the history
It's causing lockdep warnings and why should
we access the memory that is freed up?

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Christian König authored and Alex Deucher committed Aug 5, 2014
1 parent dfc230f commit e7e3160
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/radeon/radeon_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ void radeon_bo_unref(struct radeon_bo **bo)
return;
rdev = (*bo)->rdev;
tbo = &((*bo)->tbo);
down_read(&rdev->pm.mclk_lock);
ttm_bo_unref(&tbo);
up_read(&rdev->pm.mclk_lock);
if (tbo == NULL)
*bo = NULL;
}
Expand Down

0 comments on commit e7e3160

Please sign in to comment.