drm/amdgpu: handle error case for ctx
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 10 Dec 2015 07:50:02 +0000 (15:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2015 00:42:11 +0000 (19:42 -0500)
commitc648ed7c5c7f0e3bb4ab11bf08bccf99b42a4cbb
treea795fe668e3c3459ecf53cc5823ee09b41e8c8e2
parente8deea2d4bb441751a4c1730495fa9810a208de5
drm/amdgpu: handle error case for ctx

Properly handle ctx init failure.

Signed-off-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_ctx.c