]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/ttm:fix memory leak due to individualize
authorMonk Liu <Monk.Liu@amd.com>
Mon, 23 Oct 2017 02:30:57 +0000 (10:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Oct 2017 22:24:58 +0000 (18:24 -0400)
commitbbb4d8d9ee81714b98c25df39a1ed90fa075e90a
tree4d92a6c42b003fa69a25bce486b07f982816034f
parenta695e43712242c354748e9bae5d137d4337a7694
drm/ttm:fix memory leak due to individualize

after individualize we need manually call reservation_object_fini()
if all fences on resv signaled during test, otherwise kmemory leak

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c