drm/amdgpu:fix memleak in takedown
authorMonk Liu <Monk.Liu@amd.com>
Tue, 14 Nov 2017 08:48:06 +0000 (16:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Nov 2017 18:35:48 +0000 (13:35 -0500)
commit9ee8ecbb3eafeb1a899eaba1329ba3c4c092b754
tree2dad0d6a2dcf9d8d3ce8845d44f332e98718dc53
parent451cc55dd17fa5130f05629ac8d90e32facf27f6
drm/amdgpu:fix memleak in takedown

this can fix the memory leak under the case that not all
BO are freed during "takedown" stage, because originally
it blocks following kfree on mgr.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c