Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7e31600 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/radeon: remove taking mclk_lock from radeon_bo_unref



It's causing lockdep warnings and why should
we access the memory that is freed up?

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dfc230f9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}