diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-17 06:26:48 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-29 02:49:03 (GMT) |
commit | 8cddebd767c5059257022cfbc2ac53fd81c09c94 (patch) | |
tree | dd8339b29ab65d56526239f6e010f833656984e3 | |
parent | c4144670fd9b34d6eae22c9f83751745898e8243 (diff) | |
download | linux-8cddebd767c5059257022cfbc2ac53fd81c09c94.tar.xz |
um: don't bother with passing sp to do_fork() for fork(2)/vfork(2)
copy_thread() on um will do the right thing when getting 0 for sp...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/um/kernel/syscall.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c index a81f370..3a87522 100644 --- a/arch/um/kernel/syscall.c +++ b/arch/um/kernel/syscall.c @@ -16,23 +16,19 @@ long sys_fork(void) { - return do_fork(SIGCHLD, UPT_SP(¤t->thread.regs.regs), + return do_fork(SIGCHLD, 0, ¤t->thread.regs, 0, NULL, NULL); } long sys_vfork(void) { - return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, - UPT_SP(¤t->thread.regs.regs), + return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, 0, ¤t->thread.regs, 0, NULL, NULL); } long sys_clone(unsigned long clone_flags, unsigned long newsp, void __user *parent_tid, void __user *child_tid) { - if (!newsp) - newsp = UPT_SP(¤t->thread.regs.regs); - return do_fork(clone_flags, newsp, ¤t->thread.regs, 0, parent_tid, child_tid); } |