Page MenuHomeFreeBSD

D39974.diff
No OneTemporary

D39974.diff

diff --git a/sys/amd64/vmm/amd/svm.c b/sys/amd64/vmm/amd/svm.c
--- a/sys/amd64/vmm/amd/svm.c
+++ b/sys/amd64/vmm/amd/svm.c
@@ -166,7 +166,10 @@
{
smp_rendezvous(NULL, svm_disable, NULL, NULL);
- kmem_free(hsave, (mp_maxid + 1) * PAGE_SIZE);
+
+ if (hsave != NULL)
+ kmem_free(hsave, (mp_maxid + 1) * PAGE_SIZE);
+
return (0);
}
diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c
--- a/sys/amd64/vmm/intel/vmx.c
+++ b/sys/amd64/vmm/intel/vmx.c
@@ -619,7 +619,9 @@
nmi_flush_l1d_sw = 0;
smp_rendezvous(NULL, vmx_disable, NULL, NULL);
- kmem_free(vmxon_region, (mp_maxid + 1) * PAGE_SIZE);
+
+ if (vmxon_region != NULL)
+ kmem_free(vmxon_region, (mp_maxid + 1) * PAGE_SIZE);
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 9, 12:53 AM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29425988
Default Alt Text
D39974.diff (727 B)

Event Timeline