From: Jan Kiszka Date: Sun, 2 Dec 2012 10:04:14 +0000 (+0100) Subject: KVM: x86: Fix uninitialized return code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45e3cc7d9fe69844cd12d51c511e1e98d156bbe1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git KVM: x86: Fix uninitialized return code This is a regression caused by 18595411a7. Signed-off-by: Jan Kiszka Signed-off-by: Gleb Natapov --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index b0b8abe688ce..3bdaf298b8c7 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3006,6 +3006,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, break; } case KVM_SET_LAPIC: { + r = -EINVAL; if (!vcpu->arch.apic) goto out; u.lapic = memdup_user(argp, sizeof(*u.lapic));