diff --git a/mm/mremap.c b/mm/mremap.c index ea843ef6daca..cf156432363b 100755 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -709,7 +709,7 @@ out: if (locked && new_len > old_len) mm_populate(new_addr + old_len, new_len - old_len); userfaultfd_unmap_complete(mm, &uf_unmap_early); - mremap_userfaultfd_complete(&uf, addr, new_addr, old_len); + mremap_userfaultfd_complete(&uf, addr, ret, old_len); userfaultfd_unmap_complete(mm, &uf_unmap); return ret; }