Commit 0b0db14c536debd92328819fe6c51a49717e8440

Authored by Hugh Dickins
Committed by Linus Torvalds
1 parent 689bcebfda

[PATCH] unpaged: copy_page_range vma

For copy_one_pte's print_bad_pte to show the task correctly (instead of
"???"), dup_mmap must pass down parent vma rather than child vma.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -263,7 +263,7 @@
263 263 rb_parent = &tmp->vm_rb;
264 264  
265 265 mm->map_count++;
266   - retval = copy_page_range(mm, oldmm, tmp);
  266 + retval = copy_page_range(mm, oldmm, mpnt);
267 267  
268 268 if (tmp->vm_ops && tmp->vm_ops->open)
269 269 tmp->vm_ops->open(tmp);