diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-26 08:32:10 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-26 08:32:10 +0000 |
commit | a8f579ba83e161f90c6b802d533be4018f9917b1 (patch) | |
tree | 5f3711bd8f838e5fbeb59045aab787b7fedb8f76 /sys | |
parent | ceadf6e7a6f2cb298c190a7f63ba73cce1fdcfde (diff) |
init pat_default to 0 as it may potentially be used uninitialised
ok mlarkin@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <mlarkin@openbsd.org> * @@ -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, |