|
@@ -356,10 +356,10 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
|
|
if (IS_ERR(pol))
|
|
if (IS_ERR(pol))
|
|
goto fail_nomem_policy;
|
|
goto fail_nomem_policy;
|
|
vma_set_policy(tmp, pol);
|
|
vma_set_policy(tmp, pol);
|
|
|
|
+ tmp->vm_mm = mm;
|
|
if (anon_vma_fork(tmp, mpnt))
|
|
if (anon_vma_fork(tmp, mpnt))
|
|
goto fail_nomem_anon_vma_fork;
|
|
goto fail_nomem_anon_vma_fork;
|
|
tmp->vm_flags &= ~VM_LOCKED;
|
|
tmp->vm_flags &= ~VM_LOCKED;
|
|
- tmp->vm_mm = mm;
|
|
|
|
tmp->vm_next = tmp->vm_prev = NULL;
|
|
tmp->vm_next = tmp->vm_prev = NULL;
|
|
file = tmp->vm_file;
|
|
file = tmp->vm_file;
|
|
if (file) {
|
|
if (file) {
|