drm/ttm: fix missing inc bo_count
authorMonk Liu <monk.liu@amd.com>
Fri, 11 Aug 2017 05:50:51 +0000 (13:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:45 +0000 (15:27 -0400)
Signed-off-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_util.c

index d0459b392e5eb07324b2ad9e9f77f4a7a6f278cb..c934ad5b39036c6de16265e8c2e9cbf61873d6fe 100644 (file)
@@ -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);