commit | 45e3cc7d9fe69844cd12d51c511e1e98d156bbe1 | [log] [tgz] |
---|---|---|
author | Jan Kiszka <jan.kiszka@siemens.com> | Sun Dec 02 11:04:14 2012 +0100 |
committer | Gleb Natapov <gleb@redhat.com> | Sun Dec 02 17:37:04 2012 +0200 |
tree | 53fe3baee2d1ac8f94ca0ed4ef70f53ad0725370 | |
parent | ba904635d498fea43fc3610983f9dc430ac324e4 [diff] |
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>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index b0b8abe..3bdaf298 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c
@@ -3006,6 +3006,7 @@ break; } case KVM_SET_LAPIC: { + r = -EINVAL; if (!vcpu->arch.apic) goto out; u.lapic = memdup_user(argp, sizeof(*u.lapic));