[PATCH] drm/ttm:fix missing inc bo_count

Monk Liu Monk.Liu at amd.com
Mon Aug 14 03:43:37 UTC 2017


From: Monk Liu <monk.liu at amd.com>

Change-Id: I32ed928e59db5478e429189ac8b010e336e45a94
Signe-off-by: Jack Xiao <jack.xiao at amd.com>
---
 drivers/gpu/drm/ttm/ttm_bo_util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index d0459b3..c934ad5 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -469,6 +469,7 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,
 	 * TODO: Explicit member copy would probably be better here.
 	 */
 
+	atomic_inc(&bo->glob->bo_count);
 	INIT_LIST_HEAD(&fbo->ddestroy);
 	INIT_LIST_HEAD(&fbo->lru);
 	INIT_LIST_HEAD(&fbo->swap);
-- 
2.7.4



More information about the amd-gfx mailing list