drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 24 Oct 2019 19:44:10 +0000 (15:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:11 +0000 (16:50 -0400)
commitdb5e65fcb39352e193bb67b3ba276c1c04918518
treeb8ae99afa85a92e1a2d3b1a6a2bb519163bb34b5
parente91e5f080e03e0c28742f0aa4051c7cefafd7cdd
drm/amdgpu: If amdgpu_ib_schedule fails return back the error.

Use ERR_PTR to return back the error happened during amdgpu_ib_schedule.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@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_job.c