Change-Id: If37d906b7ada95087f02e2dffdd81c78a0146c83 Signed-off-by: Chunming Zhou <David1.Zhou at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 3d2159e..9721552 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1459,6 +1459,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev, sizeof(struct amdgpu_vm_pt)); if (!parent->entries) return -ENOMEM; + memset(parent->entries, 0 , sizeof(struct amdgpu_vm_pt)); } from = saddr >> shift; -- 1.9.1