drm/amdgpu: fix error handling in amdgpu_bo_list_set
authorChristian König <christian.koenig@amd.com>
Mon, 22 Feb 2016 14:11:56 +0000 (15:11 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2016 06:50:18 +0000 (01:50 -0500)
commit70eacc72dbbc229013fee54550c03179f9a513d8
tree021da08b98b98d37c70dd6ddba62d4acbb199ba6
parent0994c09c0412591ccd7303eec263a9dc5119c653
drm/amdgpu: fix error handling in amdgpu_bo_list_set

Don't leak BOs in case of some error.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c