From patchwork Sun Dec 2 09:58:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 1830201 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1C3D8DF254 for ; Sun, 2 Dec 2012 09:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752197Ab2LBJ6y (ORCPT ); Sun, 2 Dec 2012 04:58:54 -0500 Received: from mout.web.de ([212.227.15.4]:65007 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647Ab2LBJ6x (ORCPT ); Sun, 2 Dec 2012 04:58:53 -0500 Received: from mchn199C.mchp.siemens.de ([95.157.56.37]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MAvGa-1TXMZ40bu0-00A4kJ; Sun, 02 Dec 2012 10:58:50 +0100 Message-ID: <50BB2657.9010104@web.de> Date: Sun, 02 Dec 2012 10:58:47 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Marcelo Tosatti , Gleb Natapov CC: kvm , Guo Chao Subject: [PATCH] KVM: x86: Fix uninitialized return code X-Enigmail-Version: 1.4.6 X-Provags-ID: V02:K0:uEzcslWgULsH1TUpzqBCTsKMGBEzdS/Xjb76ptYF2Xc TCT0NAiCGDxDcN/Vwqg77tjd7i7aTb0z3EvnHeOeykkoOxgw7b 6JosZHqdK2Yy+a3CZLLPuE+2fk60cRKO8Hxy1vOrLKqP4+rky0 PaBmBDFy3p+v1T6oe0zg2RI5DMDx1J08XGvdQ3CA38lzwHuF9H Y8rdaAQYkeYywgNPVgurA== Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Jan Kiszka This is a regression caused by 18595411a7. Signed-off-by: Jan Kiszka --- 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..04ced33 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 = -EFAULT; if (!vcpu->arch.apic) goto out; u.lapic = memdup_user(argp, sizeof(*u.lapic));