VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Sergei Trofimovich <slyfox@gentoo.org> 2021-03-12 21:08:27 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-03-13 11:27:31 -0800 commit: 61bf318eac2c13356f7bd1c6a05421ef504ccc8a parent: 0ceb1ace4a2778e34a5414e5349712ae4dc41d85
Commit Summary:
ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/ia64/include/asm/syscall.h b/arch/ia64/include/asm/syscall.h
index 6c6f16e409a8..0d23c0049301 100644
--- a/arch/ia64/include/asm/syscall.h
+++ b/arch/ia64/include/asm/syscall.h
@@ -32,7 +32,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,