aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 8028ac65db18..42ba85c62fcb 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -3854,7 +3854,7 @@ static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa,
3854 /* Handle a 32-bit guest writing two halves of a 64-bit gpte */ 3854 /* Handle a 32-bit guest writing two halves of a 64-bit gpte */
3855 *gpa &= ~(gpa_t)7; 3855 *gpa &= ~(gpa_t)7;
3856 *bytes = 8; 3856 *bytes = 8;
3857 r = kvm_read_guest(vcpu->kvm, *gpa, &gentry, min(*bytes, 8)); 3857 r = kvm_read_guest(vcpu->kvm, *gpa, &gentry, 8);
3858 if (r) 3858 if (r)
3859 gentry = 0; 3859 gentry = 0;
3860 new = (const u8 *)&gentry; 3860 new = (const u8 *)&gentry;