[PATCH 11/11] unpaged: copy_page_range vma

Hugh Dickins
2005-11-17T19:41:36Z

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>
---

kernel/fork.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- unpaged10/kernel/fork.c 2005-11-17 13:53:21.000000000 +0000
+++ unpaged11/kernel/fork.c 2005-11-17 15:12:25.000000000 +0000
@@ -263,7 +263,7 @@ static inline int dup_mmap(struct mm_str
rb_parent = &tmp->vm_rb;

mm->map_count++;
- retval = copy_page_range(mm, oldmm, tmp);
+ retval = copy_page_range(mm, oldmm, mpnt);

if (tmp->vm_ops && tmp->vm_ops->open)
tmp->vm_ops->open(tmp);