From: Heiko Carstens Date: Thu, 29 Jun 2006 12:57:25 +0000 (+0200) Subject: [S390] __syscall_return error check. X-Git-Tag: MMI-PSA29.97-13-9~48730^2~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4980082db1a8aa3ec45aa22cd4a10021955e22ed;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [S390] __syscall_return error check. Fix __syscall_return macro: valid error numbers are in the range of -1..-4095. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/include/asm-s390/unistd.h b/include/asm-s390/unistd.h index e21443d3ea1d..aa7a243862e1 100644 --- a/include/asm-s390/unistd.h +++ b/include/asm-s390/unistd.h @@ -394,11 +394,9 @@ #ifdef __KERNEL__ -/* user-visible error numbers are in the range -1 - -122: see */ - #define __syscall_return(type, res) \ do { \ - if ((unsigned long)(res) >= (unsigned long)(-125)) { \ + if ((unsigned long)(res) >= (unsigned long)(-4095)) {\ errno = -(res); \ res = -1; \ } \