diff --git a/mm/mempolicy.c b/mm/mempolicy.c index d79fa299b70c06648ab1093156576a298cd90a61..325771bef5e2f2f752cc927119ba0abd53475e67 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -975,7 +975,7 @@ static long do_get_mempolicy(int *policy, nodemask_t *nmask, * want to return MPOL_DEFAULT in this case. */ mmap_read_lock(mm); - vma = find_vma_intersection(mm, addr, addr+1); + vma = vma_lookup(mm, addr); if (!vma) { mmap_read_unlock(mm); return -EFAULT;