提交 5cc63684 编写于 作者: R Roger He 提交者: Alex Deucher

drm/ttm: init locked again to prevent incorrect unlock

Signed-off-by: NRoger He <Hongbo.He@amd.com>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 7364d608
...@@ -737,6 +737,7 @@ static int ttm_mem_evict_first(struct ttm_bo_device *bdev, ...@@ -737,6 +737,7 @@ static int ttm_mem_evict_first(struct ttm_bo_device *bdev,
place)) { place)) {
if (locked) if (locked)
reservation_object_unlock(bo->resv); reservation_object_unlock(bo->resv);
locked = false;
continue; continue;
} }
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册