Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: x86: Fix uninitialized return code

This is a regression caused by 18595411a7.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

authored by

Jan Kiszka and committed by
Gleb Natapov
45e3cc7d ba904635

+1
+1
arch/x86/kvm/x86.c
··· 3006 3006 break; 3007 3007 } 3008 3008 case KVM_SET_LAPIC: { 3009 + r = -EINVAL; 3009 3010 if (!vcpu->arch.apic) 3010 3011 goto out; 3011 3012 u.lapic = memdup_user(argp, sizeof(*u.lapic));