From: Rich Felker Date: Tue, 29 Mar 2011 02:34:27 +0000 (-0400) Subject: fix bug from syscall overhaul: extra __syscall_ret call for 0-arg syscalls X-Git-Tag: v0.7.5~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4cc78719dd22a685ddd89b92ac3bfc308c4c19b3;p=oweals%2Fmusl.git fix bug from syscall overhaul: extra __syscall_ret call for 0-arg syscalls this mainly just caused bloat, but could corrupt errno if a 0-arg syscall ever failed. --- diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h index 8693ed5e..519e2dcd 100644 --- a/arch/i386/bits/syscall.h +++ b/arch/i386/bits/syscall.h @@ -6,7 +6,7 @@ static inline long __syscall0(long __n) { unsigned long __ret; __asm__ __volatile__ ("int $128" : "=a"(__ret) : "a"(__n) : "memory"); - return __syscall_ret(__ret); + return __ret; } #ifndef __PIC__