From: Monk Liu Date: Fri, 11 Aug 2017 05:50:51 +0000 (+0800) Subject: drm/ttm: fix missing inc bo_count X-Git-Tag: v4.15-rc1~19^2~56^2~220 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7e96a13523af12645b7e18d7cc268a95b72ff026;p=linux-block.git drm/ttm: fix missing inc bo_count Signed-off-by: Monk Liu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index d0459b392e5e..c934ad5b3903 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);