aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/include/asm/syscall.h')
-rw-r--r--arch/ia64/include/asm/syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/syscall.h b/arch/ia64/include/asm/syscall.h
index 1d0b875fec44..ec909eec0b4c 100644
--- a/arch/ia64/include/asm/syscall.h
+++ b/arch/ia64/include/asm/syscall.h
@@ -35,7 +35,7 @@ static inline void syscall_rollback(struct task_struct *task,
static inline long syscall_get_error(struct task_struct *task,
struct pt_regs *regs)
{
- return regs->r10 == -1 ? regs->r8:0;
+ return regs->r10 == -1 ? -regs->r8:0;
}
static inline long syscall_get_return_value(struct task_struct *task,