]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix memory leak
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 4 Oct 2019 09:53:37 +0000 (11:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:35:35 +0000 (19:35 -0500)
commitf4e62e8f8cedb73f508ebc17eea492d4c02c0dc1
tree73c3b8d1d08288c5fe3acb4513906b29c2b95d17
parent4aa83c832c1439d7036b18af177aad427e90c1c7
drm/amdgpu: fix memory leak

cleanup error handling code and make sure temporary info array
with the handles are freed by amdgpu_bo_list_put() on
idr_replace()'s failure.

Signed-off-by: Nirmoy Das <nirmoy.das@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_bo_list.c