Commit 5cc63684 authored by Roger He's avatar Roger He Committed by Alex Deucher

drm/ttm: init locked again to prevent incorrect unlock

Signed-off-by: default avatarRoger He <Hongbo.He@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment