From patchwork Fri Jun 4 14:02:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 104295 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o54E6TSm023519 for ; Fri, 4 Jun 2010 14:06:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932317Ab0FDOGK (ORCPT ); Fri, 4 Jun 2010 10:06:10 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:51069 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932288Ab0FDOGH convert rfc822-to-8bit (ORCPT ); Fri, 4 Jun 2010 10:06:07 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 39E82170115; Fri, 4 Jun 2010 22:06:01 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o54E3jFZ028433; Fri, 4 Jun 2010 22:03:45 +0800 Received: from [10.167.141.99] (unknown [10.167.141.99]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id B8C2910C10D; Fri, 4 Jun 2010 22:09:53 +0800 (CST) Message-ID: <4C09077B.3070802@cn.fujitsu.com> Date: Fri, 04 Jun 2010 22:02:35 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Avi Kivity CC: Jan Kiszka , Marcelo Tosatti , kvm Subject: [PATCH resend] KVM: MMU: fix compile warning in kvm_send_hwpoison_signal() References: <4C0754DD.3030305@web.de> <4C07586B.4070709@cn.fujitsu.com> In-Reply-To: <4C07586B.4070709@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 04 Jun 2010 14:06:29 +0000 (UTC) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index c16c4ca..a62e3ba 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2049,7 +2049,7 @@ static void kvm_send_hwpoison_signal(struct kvm *kvm, gfn_t gfn) /* Touch the page, so send SIGBUS */ hva = (void __user *)gfn_to_hva(kvm, gfn); - (void)copy_from_user(buf, hva, 1); + r = copy_from_user(buf, hva, 1); } static int kvm_handle_bad_page(struct kvm *kvm, gfn_t gfn, pfn_t pfn)