All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/ttm: init locked again to prevent incorrect unlock
@ 2017-12-14  3:15 ` Roger He
  0 siblings, 0 replies; 2+ messages in thread
From: Roger He @ 2017-12-14  3:15 UTC (permalink / raw)
  To: amd-gfx, dri-devel; +Cc: stable, Roger He

Change-Id: Icc8b5112570429f24e90d52484df2728c546f85b
Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] drm/ttm: init locked again to prevent incorrect unlock
@ 2017-12-14  3:15 ` Roger He
  0 siblings, 0 replies; 2+ messages in thread
From: Roger He @ 2017-12-14  3:15 UTC (permalink / raw)
  To: amd-gfx, dri-devel; +Cc: stable, Roger He

Change-Id: Icc8b5112570429f24e90d52484df2728c546f85b
Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-14  3:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14  3:15 [PATCH] drm/ttm: init locked again to prevent incorrect unlock Roger He
2017-12-14  3:15 ` Roger He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.