author: Liam Howlett <liam.howlett@oracle.com> 2021-06-28 19:39:17 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-06-29 10:53:51 -0700
commit: fc98c03ba9ea970c6b346a6fe57f98c16a3971da
parent: 9ce2c3fc0be6e7d0bb2236a33bbb7a0f1943bd81
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 46fb042837d2..732bfaf252bd 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2170,7 +2170,7 @@ static kvm_pfn_t hva_to_pfn(unsigned long addr, bool atomic, bool *async,
}
retry:
- vma = find_vma_intersection(current->mm, addr, addr + 1);
+ vma = vma_lookup(current->mm, addr);
if (vma == NULL)
pfn = KVM_PFN_ERR_FAULT;