drm/ttm: add the missed global memory count update
authorRoger He <Hongbo.He@amd.com>
Fri, 19 Jan 2018 07:17:27 +0000 (15:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:17:59 +0000 (14:17 -0500)
commit4d869f2598e6b3af822e3db4b5ac789e9a5915a4
tree739caf1eade1cc00846b33035c19b4e96d2ef089
parentcb5f1a52caf23414c65c6bc7eeefc281164ad092
drm/ttm: add the missed global memory count update

when ttm_mem_global_alloc_page fails, we should call
ttm_mem_global_free_page to update memory count for
the ttm pages which already run ttm_mem_global_alloc_page
successfully

Signed-off-by: Roger He <Hongbo.He@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_page_alloc.c