diff options
author | Heiko Carstens | 2006-06-29 14:57:25 +0200 |
---|---|---|
committer | Martin Schwidefsky | 2006-06-29 14:57:25 +0200 |
commit | 4980082db1a8aa3ec45aa22cd4a10021955e22ed (patch) | |
tree | d6254d6bd4a7a62c7ea3195837f0c9ee36e03591 /include/asm-s390 | |
parent | [S390] cio async subchannel reprobe. (diff) | |
download | kernel-qcow2-linux-4980082db1a8aa3ec45aa22cd4a10021955e22ed.tar.gz kernel-qcow2-linux-4980082db1a8aa3ec45aa22cd4a10021955e22ed.tar.xz kernel-qcow2-linux-4980082db1a8aa3ec45aa22cd4a10021955e22ed.zip |
[S390] __syscall_return error check.
Fix __syscall_return macro: valid error numbers are in the range
of -1..-4095.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/unistd.h | 4 |
1 files changed, 1 insertions, 3 deletions
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 <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; \ } \ |