summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64/clone.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/x86_64/clone.S')
-rw-r--r--libc/sysdeps/linux/x86_64/clone.S9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/x86_64/clone.S b/libc/sysdeps/linux/x86_64/clone.S
index 4a7e96500..0ae999722 100644
--- a/libc/sysdeps/linux/x86_64/clone.S
+++ b/libc/sysdeps/linux/x86_64/clone.S
@@ -57,9 +57,9 @@ __clone:
/* Sanity check arguments. */
movq $-EINVAL,%rax
testq %rdi,%rdi /* no NULL function pointers */
- jz __error
+ jz __syscall_error
testq %rsi,%rsi /* no NULL stack pointers */
- jz __error
+ jz __syscall_error
/* Insert the argument onto the new stack. */
subq $16,%rsi
@@ -79,7 +79,7 @@ __clone:
syscall
testq %rax,%rax
- jl __error
+ jl __syscall_error
jz .Lthread_start
.Lpseudo_end:
@@ -111,9 +111,6 @@ __clone:
movq %rax, %rdi
call _exit_internal
-__error:
- jmp __syscall_error
-
.size __clone,.-__clone
.weak clone