projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80a505
)
xtensa: fix syscall_set_return_value
author
Max Filippov
<jcmvbkbc@gmail.com>
Thu, 14 Nov 2019 23:05:40 +0000
(15:05 -0800)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Tue, 26 Nov 2019 20:01:45 +0000
(12:01 -0800)
syscall return value is in the register a2, not a0.
Cc: stable@vger.kernel.org # v5.0+
Fixes:
9f24f3c1067c
("xtensa: implement tracehook functions and enable HAVE_ARCH_TRACEHOOK")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/syscall.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/include/asm/syscall.h
b/arch/xtensa/include/asm/syscall.h
index 359ab40e935a4b7ef0c5f176a306a38f1ad67816..c90fb944f9d8b61eeb4f6a4a1bd5d34bf13e798a 100644
(file)
--- a/
arch/xtensa/include/asm/syscall.h
+++ b/
arch/xtensa/include/asm/syscall.h
@@
-51,7
+51,7
@@
static inline void syscall_set_return_value(struct task_struct *task,
struct pt_regs *regs,
int error, long val)
{
- regs->areg[
0
] = (long) error ? error : val;
+ regs->areg[
2
] = (long) error ? error : val;
}
#define SYSCALL_MAX_ARGS 6