Change-Id: Icc8b5112570429f24e90d52484df2728c546f85b
Signed-off-by: Roger He <hongbo...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
Cc: sta...@vger.kernel.org
---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index a3f908c..098b22e 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -735,6 +735,7 @@ static int ttm_mem_evict_first(struct ttm_bo_device *bdev,
                                                                      place)) {
                                if (locked)
                                        reservation_object_unlock(bo->resv);
+                               locked = false;
                                continue;
                        }
                        break;
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to