diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
commit | b2ad5f821b1381492d792ca10b1eb7a107b48f14 (patch) | |
tree | 954a648692e7da983db1d2470953705f6a729264 /kernel/fork.c | |
parent | c9c06167e7933d93a6e396174c68abf242294abb (diff) |
Merge with Linux 2.4.0-prerelease. Big Makefile rewrite, test your
Makefiles.
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index bf3e36cfb..f5d3a83df 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -133,11 +133,9 @@ static inline int dup_mmap(struct mm_struct * mm) mm->mmap_avl = NULL; mm->mmap_cache = NULL; mm->map_count = 0; - mm->context = 0; mm->cpu_vm_mask = 0; mm->swap_cnt = 0; mm->swap_address = 0; - mm->segments = NULL; pprev = &mm->mmap; for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { struct file *file; @@ -179,10 +177,9 @@ static inline int dup_mmap(struct mm_struct * mm) * Link in the new vma even if an error occurred, * so that exit_mmap() can clean up the mess. */ - tmp->vm_next = *pprev; *pprev = tmp; - pprev = &tmp->vm_next; + if (retval) goto fail_nomem; } |