drm/ttm: init locked again to prevent incorrect unlock
Signed-off-by: Roger He <Hongbo.He@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Родитель
7364d60882
Коммит
5cc636846d
|
@ -737,6 +737,7 @@ static int ttm_mem_evict_first(struct ttm_bo_device *bdev,
|
|||
place)) {
|
||||
if (locked)
|
||||
reservation_object_unlock(bo->resv);
|
||||
locked = false;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче