summaryrefslogtreecommitdiff
path: root/include/asm-s390/unistd.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2006-06-29 14:57:25 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-06-29 14:57:25 +0200
commit4980082db1a8aa3ec45aa22cd4a10021955e22ed (patch)
treed6254d6bd4a7a62c7ea3195837f0c9ee36e03591 /include/asm-s390/unistd.h
parent40154b824331cd9c81c06545761338f3d80a36e2 (diff)
downloadkernel-common-4980082db1a8aa3ec45aa22cd4a10021955e22ed.tar.gz
kernel-common-4980082db1a8aa3ec45aa22cd4a10021955e22ed.tar.bz2
kernel-common-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/unistd.h')
-rw-r--r--include/asm-s390/unistd.h4
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; \
} \