On Tue, Sep 12, 2017 at 7:05 PM, Felix Kuehling <[email protected]> wrote: > Make sure vm->root.bo is not left reserved if amdgpu_bo_kmap fails. > > Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > index 64baa31..87858f6 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c > @@ -2619,9 +2619,9 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct > amdgpu_vm *vm, > goto error_free_root; > > r = amdgpu_bo_kmap(vm->root.base.bo, NULL); > + amdgpu_bo_unreserve(vm->root.base.bo); > if (r) > goto error_free_root; > - amdgpu_bo_unreserve(vm->root.base.bo); > } > > return 0; > -- > 2.7.4 > > _______________________________________________ > amd-gfx mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
