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>
Fri, 4 Dec 2015 16:26:51 +0000 (11:26 -0500)
commitba98f9e56c77f2b7a28f9d025f8780098221e1b6
tree1d2db1530e1de9403119f8f82c864b3dbd63e3b6
parent0d07db7e10f415d7ec0efde54f10a0905a0910b9
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