drm/amdgpu: fix leaking the IBs on error
authorChristian König <christian.koenig@amd.com>
Thu, 5 Nov 2015 16:00:25 +0000 (17:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2015 16:05:51 +0000 (11:05 -0500)
commite4a58a28b50f30e72292b6659d94410cbf7355ad
tree7a7a9899f9baebe4fbc133c40f696a782e6f76eb
parentf5617f9dde5ae2466560f7cb008c741e2b88adab
drm/amdgpu: fix leaking the IBs on error

Fixing a memory leak when the scheduler is enabled.

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