OSDN Git Service

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)
commitb9ed69e6fd664d88cf6d8f9623eb3a0d08387b7c
tree73c3b8d1d08288c5fe3acb4513906b29c2b95d17
parent6e4be98767b249923e97b5a3c509e722d22e462d
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