summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-12-02 11:04:14 +0100
committerGleb Natapov <gleb@redhat.com>2012-12-02 17:37:04 +0200
commit45e3cc7d9fe69844cd12d51c511e1e98d156bbe1 (patch)
tree53fe3baee2d1ac8f94ca0ed4ef70f53ad0725370 /arch/x86/kvm
parentba904635d498fea43fc3610983f9dc430ac324e4 (diff)
downloadlinux-3.10-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.tar.gz
linux-3.10-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.tar.bz2
linux-3.10-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.zip
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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index b0b8abe688c..3bdaf298b8c 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));