提交 e7e31600 编写于 作者: C Christian König 提交者: Alex Deucher

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: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 dfc230f9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册