diff mbox

[resend] KVM: MMU: fix compile warning in kvm_send_hwpoison_signal()

Message ID 4C09077B.3070802@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Xiao Guangrong June 4, 2010, 2:02 p.m. UTC
None
diff mbox

Patch

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)