Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
uninitialised variable in nvmm_x86_vmx.c
Folks,
I have tried to build a kernel from freshly update sources and the build
stops with an uninitialised variable error in nvmm_x86.vmx.c. I had a
poke arund and this patch fixes the compile error:
Index: nvmm_x86_vmx.c
===================================================================
RCS file: /cvsroot/src/sys/dev/nvmm/x86/nvmm_x86_vmx.c,v
retrieving revision 1.97
diff -u -r1.97 nvmm_x86_vmx.c
--- nvmm_x86_vmx.c 8 Aug 2026 12:47:47 -0000 1.97
+++ nvmm_x86_vmx.c 6 Sep 2026 06:29:23 -0000
@@ -2454,6 +2454,7 @@
}
cpudata->gcr2 = rcr2();
vmx_htlb_flush_ack(cpudata, machgen);
+ exitcode = 0;
if (__predict_true(ret == 0)) {
exitcode = vmx_vmread(VMCS_EXIT_REASON);
exitcode &= __BITS(15,0);
But I am not sure if this is the correct fix or not. Can someone
familiar with the code have a look?
--
Brett Lymn
--
Sent from my NetBSD device.
"We are were wolves",
"You mean werewolves?",
"No we were wolves, now we are something else entirely",
"Oh"
Home |
Main Index |
Thread Index |
Old Index