patch-2.0.21-2.1.0 linux/kernel/fork.c
Next file: linux/kernel/ksyms.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Sep 25 12:51:59 1996
- Orig file:
lx2.0/v2.0.21/linux/kernel/fork.c
- Orig date:
Sun Sep 1 09:15:34 1996
diff -u --recursive --new-file lx2.0/v2.0.21/linux/kernel/fork.c linux/kernel/fork.c
@@ -19,7 +19,6 @@
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/malloc.h>
-#include <linux/ldt.h>
#include <linux/smp.h>
#include <asm/segment.h>
@@ -100,12 +99,12 @@
mpnt->vm_next_share = tmp;
tmp->vm_prev_share = mpnt;
}
- if (tmp->vm_ops && tmp->vm_ops->open)
- tmp->vm_ops->open(tmp);
if (copy_page_range(mm, current->mm, tmp)) {
exit_mmap(mm);
return -ENOMEM;
}
+ if (tmp->vm_ops && tmp->vm_ops->open)
+ tmp->vm_ops->open(tmp);
*p = tmp;
p = &tmp->vm_next;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov