From 4cc78719dd22a685ddd89b92ac3bfc308c4c19b3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 28 Mar 2011 22:34:27 -0400 Subject: 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. --- arch/i386/bits/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ -- cgit v1.2.1