From a8f579ba83e161f90c6b802d533be4018f9917b1 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 26 Nov 2015 08:32:10 +0000 Subject: init pat_default to 0 as it may potentially be used uninitialised ok mlarkin@ --- sys/arch/amd64/amd64/vmm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index fd563a6caf3..442944fc8af 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.8 2015/11/26 08:26:48 reyk Exp $ */ +/* $OpenBSD: vmm.c,v 1.9 2015/11/26 08:32:09 jsg Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -985,6 +985,7 @@ vcpu_init_vmx(struct vcpu *vcpu) struct vmx_msr_store *msr_store; ret = 0; + pat_default = 0; /* Allocate VMCS VA */ vcpu->vc_control_va = (vaddr_t)km_alloc(PAGE_SIZE, &kv_page, &kp_zero, -- cgit v1.2.3