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>
Wed, 30 Oct 2019 15:56:15 +0000 (11:56 -0400)
commit57c0f58e9f562089de5f0b60da103677d232374c
tree9caf7ddd11f101e5f5b9d421df4daaf72b76a4f7
parent167bf96014a095753053595f3224fcdeb49ac3c8
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