소스 검색

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>
Roger He 8 년 전
부모
커밋
5cc636846d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/gpu/drm/ttm/ttm_bo.c

+ 1 - 0
drivers/gpu/drm/ttm/ttm_bo.c

@@ -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;