drm/amdgpu: fix VM leaf walking
authorChristian König <christian.koenig@amd.com>
Wed, 24 Oct 2018 14:25:23 +0000 (16:25 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Oct 2018 18:27:06 +0000 (13:27 -0500)
commit4faaaa762328cfb8579b9c908999ca189e2ea474
tree347a2d81b8b35e50ec1ad94f6e0cd856ababbfef
parent0af5c656fdb797f74ee57414e0c07cd57406d0c3
drm/amdgpu: fix VM leaf walking

Make sure we don't try to go down further after the leave walk already
ended. This fixes a crash with a new VM test.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Rex Zhu Rex.Zhu@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c