[patch 8/24] s390: __syscall_return error check.

From: Martin Schwidefsky
Date: Wed Jun 14 2006 - 09:59:30 EST


From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>

[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@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
---

include/asm-s390/unistd.h | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)

diff -urpN linux-2.6/include/asm-s390/unistd.h linux-2.6-patched/include/asm-s390/unistd.h
--- linux-2.6/include/asm-s390/unistd.h 2006-06-14 14:29:24.000000000 +0200
+++ linux-2.6-patched/include/asm-s390/unistd.h 2006-06-14 14:29:41.000000000 +0200
@@ -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; \
} \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/