From: Monk Liu Date: Fri, 11 Aug 2017 05:50:51 +0000 (+0800) Subject: drm/ttm: fix missing inc bo_count X-Git-Tag: Ubuntu-5.2.0-15.16~5964^2^2~8 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a101a41fca04ea8ee71045b049356f93658ff28f;p=mirror_ubuntu-eoan-kernel.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);