]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Fix accounting error when fail to get pages for pool
authorXiangliang.Yu <Xiangliang.Yu@amd.com>
Wed, 16 Aug 2017 06:25:51 +0000 (14:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Aug 2017 20:47:44 +0000 (16:47 -0400)
commit3f762241547e5874dd9c0014a987b52bccb44f0b
tree70f438849dc9662f37f8511d1a74e632ff8aca1b
parentdb51f5df68e2d75c541b37a8435bbff60321dce0
drm/ttm: Fix accounting error when fail to get pages for pool

When fail to get needed page for pool, need to put allocated pages
into pool. But current code has a miscalculation of allocated pages,
correct it.

Signed-off-by: Xiangliang.Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/ttm/ttm_page_alloc.c