]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix error handling in amdgpu_vm_init
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sat, 26 Aug 2017 00:15:04 +0000 (20:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 17:07:01 +0000 (13:07 -0400)
commitca290da8f6345c8e8e180256fbe092c751fa9654
tree787da6e464098c1afd94c3e17f741c24329af6ca
parent0596df6b09cf652844eb08c917da94984177846b
drm/amdgpu: Fix error handling in amdgpu_vm_init

Make sure vm->root.bo is not left reserved if amdgpu_bo_kmap fails.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c