diff options
author | Monk Liu | 2017-08-11 07:50:51 +0200 |
---|---|---|
committer | Alex Deucher | 2017-08-29 21:27:45 +0200 |
commit | 7e96a13523af12645b7e18d7cc268a95b72ff026 (patch) | |
tree | a80b74416190421e37ef00c57645f483debbaf71 | |
parent | drm/amdgpu: set sched_hw_submission higher for KIQ (v3) (diff) | |
download | kernel-qcow2-linux-7e96a13523af12645b7e18d7cc268a95b72ff026.tar.gz kernel-qcow2-linux-7e96a13523af12645b7e18d7cc268a95b72ff026.tar.xz kernel-qcow2-linux-7e96a13523af12645b7e18d7cc268a95b72ff026.zip |
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, * 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); |