Skip to content

Commit 45efd87

Browse files
Sven Schnellehdeller
authored andcommitted
parisc: regs_return_value() should return gpr28
While working on kretprobes for PA-RISC I was wondering while the kprobes sanity test always fails on kretprobes. This is caused by returning gpr20 instead of gpr28. Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # 4.14+
1 parent c2f8d7c commit 45efd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ unsigned long profile_pc(struct pt_regs *);
2222

2323
static inline unsigned long regs_return_value(struct pt_regs *regs)
2424
{
25-
return regs->gr[20];
25+
return regs->gr[28];
2626
}
2727

2828
static inline void instruction_pointer_set(struct pt_regs *regs,

0 commit comments

Comments
 (0)