]> 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)
commit6f543a1ad82b81765c6d752cecf938f5ff7f8bdc
tree8c122489f8d012b0525b7fbb89f42dffcea59593
parent52b7759f73b03afc7cba59d3686ec69261291235
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