s390: __syscall_return error check.
PATCH 8/24 s390: __syscall_return error check.
From: Heiko Carstens <[email protected]>
[S390] __syscall_return error check.
Fix __syscall_return macro: valid error numbers are in the range of -1..-4095.
Signed-off-by Heiko Carstens <[email protected]>
Signed-off-by Martin Schwidefsky <[email protected]>
---
include/asm-s390/unistd.h | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-)
include/asm-s390/unistd.h +1 -3
@@ -392,11 +392,9 @@#endif -/* user-visible error numbers are in the range -1 - -122: see <asm-s390/errno.h> */ -#define __syscall_return (type, res) \ do { \ - if ((unsigned long)(res) >= (unsigned long)(-125)) { \ + if ((unsigned long)(res) >= (unsigned long)(-4095)) {\ errno = -(res); \ res = -1; \ } \