From: Liam R. Howlett Date: Mon, 3 May 2021 23:52:48 +0000 (-0400) Subject: mm/mempolicy: Use vma_lookup() in __access_remote_vm() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=38d861132201fdde18d7fb91b0ea224902bdc03d;p=users%2Fjedix%2Flinux-maple.git mm/mempolicy: Use vma_lookup() in __access_remote_vm() vma_lookup() finds the vma of a specific address with a cleaner interface and is more readable. Signed-off-by: Liam R. Howlett --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index d79fa299b70c0..325771bef5e2f 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;