diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/syscall.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86/syscall.h b/include/asm-x86/syscall.h index 6f293892895a..04c47dc5597c 100644 --- a/include/asm-x86/syscall.h +++ b/include/asm-x86/syscall.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define _ASM_SYSCALL_H 1 | 14 | #define _ASM_SYSCALL_H 1 |
15 | 15 | ||
16 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
17 | #include <linux/err.h> | ||
17 | 18 | ||
18 | static inline long syscall_get_nr(struct task_struct *task, | 19 | static inline long syscall_get_nr(struct task_struct *task, |
19 | struct pt_regs *regs) | 20 | struct pt_regs *regs) |
@@ -47,7 +48,7 @@ static inline long syscall_get_error(struct task_struct *task, | |||
47 | */ | 48 | */ |
48 | error = (long) (int) error; | 49 | error = (long) (int) error; |
49 | #endif | 50 | #endif |
50 | return error >= -4095L ? error : 0; | 51 | return IS_ERR_VALUE(error) ? error : 0; |
51 | } | 52 | } |
52 | 53 | ||
53 | static inline long syscall_get_return_value(struct task_struct *task, | 54 | static inline long syscall_get_return_value(struct task_struct *task, |