diff options
author | Monk Liu <monk.liu@amd.com> | 2017-08-11 01:50:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-24 11:48:46 -0400 |
commit | a101a41fca04ea8ee71045b049356f93658ff28f (patch) | |
tree | 2848da53102fe712f9503a5a50ec85a2312bb02d | |
parent | eab2c600fcc8f687f22bd2f2fa2b92ad9a043809 (diff) |
drm/ttm: fix missing inc bo_count
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>
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
469 | * TODO: Explicit member copy would probably be better here. | 469 | * TODO: Explicit member copy would probably be better here. |
470 | */ | 470 | */ |
471 | 471 | ||
472 | atomic_inc(&bo->glob->bo_count); | ||
472 | INIT_LIST_HEAD(&fbo->ddestroy); | 473 | INIT_LIST_HEAD(&fbo->ddestroy); |
473 | INIT_LIST_HEAD(&fbo->lru); | 474 | INIT_LIST_HEAD(&fbo->lru); |
474 | INIT_LIST_HEAD(&fbo->swap); | 475 | INIT_LIST_HEAD(&fbo->swap); |