From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH v2] KVM: x86: Fix uninitialized return code Date: Sun, 02 Dec 2012 11:04:14 +0100 Message-ID: <50BB279E.1090105@web.de> References: <50BB2657.9010104@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm , Guo Chao To: Marcelo Tosatti , Gleb Natapov Return-path: Received: from mout.web.de ([212.227.17.11]:63794 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647Ab2LBKFv (ORCPT ); Sun, 2 Dec 2012 05:05:51 -0500 In-Reply-To: <50BB2657.9010104@web.de> Sender: kvm-owner@vger.kernel.org List-ID: From: Jan Kiszka This is a regression caused by 18595411a7. Signed-off-by: Jan Kiszka --- Sorry, copy&pasted wrong error code. arch/x86/kvm/x86.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index b0b8abe..3bdaf29 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)); -- 1.7.3.4