drm/amdgpu/ttm: Fix memory leak userptr pages
authorDaniel Gomez <daniel@qtec.com>
Wed, 17 Mar 2021 16:08:37 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:29 +0000 (14:47 +0200)
commit14637a8dfe4f2ee3e2fa196ec7d71feff3343a09
tree8b9143eba7d712afe3a36b46207847155bebc9a8
parent6e4ae9b0eb23378d993b17967fadd0990a2e8b10
drm/amdgpu/ttm: Fix memory leak userptr pages

[ Upstream commit 0f6f9dd490d524930081a6ef1d60171ce39220b9 ]

If userptr pages have been pinned but not bounded,
they remain uncleared.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c