OSDN Git Service

drm/amdgpu: fix kmap error handling for bo creations
authorJunwei Zhang <Jerry.Zhang@amd.com>
Tue, 26 Jun 2018 08:23:48 +0000 (16:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 19:16:06 +0000 (14:16 -0500)
commitdc407ee0bda07e1e992ed7c93c1faef13a1125bd
tree99dd3d2d7ecde31287de803f64d4be84f4ec0fcc
parentbb812f1ea87dd7a4f336242212219268393ed308
drm/amdgpu: fix kmap error handling for bo creations

kmap happens after bo pin, so unpin is required on error

Signed-off-by: Junwei Zhang <Jerry.Zhang@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_object.c