drm/amdgpu: add err check for pin userptr
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 26 Nov 2015 08:33:58 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2015 20:03:54 +0000 (15:03 -0500)
commite2f784fa8a3b1fbf6999ba44f7327bd9d29f2c5b
treea04b42503f09aa74b4f3c7052712c589a2e48e17
parent0c62c6599b28b8f9e5a1822668325083598579da
drm/amdgpu: add err check for pin userptr

Missing error check if the operation failed.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c