Commit bfbb307
KVM: VMX: Set failure code in prepare_vmcs02()
The error paths in the prepare_vmcs02() function are supposed to set
*entry_failure_code but this path does not. It leads to using an
uninitialized variable in the caller.
Fixes: 71f7347 ("KVM: nVMX: Load GUEST_IA32_PERF_GLOBAL_CTRL MSR on VM-Entry")
Signed-off-by: Dan Carpenter <[email protected]>
Message-Id: <20211130125337.GB24578@kili>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent ef8b4b7 commit bfbb307
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2591 | 2591 | | |
2592 | 2592 | | |
2593 | 2593 | | |
2594 | | - | |
| 2594 | + | |
| 2595 | + | |
2595 | 2596 | | |
| 2597 | + | |
2596 | 2598 | | |
2597 | 2599 | | |
2598 | 2600 | | |
| |||
0 commit comments