Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: uninitialised variable in nvmm_x86_vmx.c



blymn%internode.on.net@localhost (Brett Lymn) writes:

>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:


I think that's a compiler bug.

for ret == 0, the variable is initialized.
for ret != 0, the code quits the loop before the variable is used.

As a workaround, the variable could be set to any value, but
VMCS_EXITCODE_INVALID is probably better in case a future
code change wants to use it.




Home | Main Index | Thread Index | Old Index