]> 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)
commitaf85e4af461add43ef01b42f3d2e5c0b45979962
tree787da6e464098c1afd94c3e17f741c24329af6ca
parentc0dd499ba6f42e4398a7ee9fdc2fa777e4cff961
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