Skip to content

Commit 45e3cc7

Browse files
jan-kiszkaGleb Natapov
authored andcommitted
KVM: x86: Fix uninitialized return code
This is a regression caused by 1859541. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
1 parent ba90463 commit 45e3cc7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/x86/kvm/x86.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
30063006
break;
30073007
}
30083008
case KVM_SET_LAPIC: {
3009+
r = -EINVAL;
30093010
if (!vcpu->arch.apic)
30103011
goto out;
30113012
u.lapic = memdup_user(argp, sizeof(*u.lapic));

0 commit comments

Comments
 (0)