summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2019-04-04 18:16:03 +0200
committerHelge Deller <deller@gmx.de>2019-04-06 19:07:55 +0200
commit45efd871bf0a47648f119d1b41467f70484de5bc (patch)
tree624fe084f8c68e54d3771039fbb80170989998d7 /arch
parentc2f8d7cb32cd95e3005bed58ce02afa686b9f357 (diff)
downloadlinux-45efd871bf0a47648f119d1b41467f70484de5bc.tar.bz2
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+
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/include/asm/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/ptrace.h b/arch/parisc/include/asm/ptrace.h
index 2a27b275ab09..4a87b3d600c6 100644
--- a/arch/parisc/include/asm/ptrace.h
+++ b/arch/parisc/include/asm/ptrace.h
@@ -22,7 +22,7 @@ unsigned long profile_pc(struct pt_regs *);
static inline unsigned long regs_return_value(struct pt_regs *regs)
{
- return regs->gr[20];
+ return regs->gr[28];
}
static inline void instruction_pointer_set(struct pt_regs *regs,