drm/amdgpu: Free resources of bo_list when idr_alloc fails
authorAlex Xie <AlexBin.Xie@amd.com>
Wed, 5 Jul 2017 22:02:04 +0000 (18:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:17 +0000 (11:06 -0400)
commita5d20c405a37db7e59089422e795ad58feb37638
tree302fc5b6209a858fe14ba3901e84a39877f5f474
parent74c31c6e61f3f903799986a07ab5b7c7437d456a
drm/amdgpu: Free resources of bo_list when idr_alloc fails

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@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