]> 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>
Wed, 9 Oct 2019 16:45:59 +0000 (11:45 -0500)
commit58b9fb0d3801a66e895ebebffc4a9c2a05fa7c98
tree8c122489f8d012b0525b7fbb89f42dffcea59593
parent3a9527121a36d10e81fe39475a76144099c51db0
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