patch-1.3.48 linux/kernel/fork.c
Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Dec 15 12:48:37 1995
- Orig file:
v1.3.47/linux/kernel/fork.c
- Orig date:
Tue Nov 21 13:22:14 1995
diff -u --recursive --new-file v1.3.47/linux/kernel/fork.c linux/kernel/fork.c
@@ -206,7 +206,7 @@
p = (struct task_struct *) kmalloc(sizeof(*p), GFP_KERNEL);
if (!p)
goto bad_fork;
- new_stack = get_free_page(GFP_KERNEL);
+ new_stack = alloc_kernel_stack();
if (!new_stack)
goto bad_fork_free_p;
error = -EAGAIN;
@@ -285,7 +285,7 @@
REMOVE_LINKS(p);
nr_tasks--;
bad_fork_free_stack:
- free_page(new_stack);
+ free_kernel_stack(new_stack);
bad_fork_free_p:
kfree(p);
bad_fork:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this