summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-08 16:09:16 +0100
committerDinh Nguyen <dinguyen@kernel.org>2022-08-15 11:25:32 -0500
commit411a76b7219555c55867466c82d70ce928d6c9e1 (patch)
tree910b99d18c02f8c87c4423d177c16519d1756921 /arch
parent2d631bd58fe0ea3e3350212e23c9aba1fb606514 (diff)
nios2: restarts apply only to the first sigframe we build...
Fixes: b53e906d255d ("nios2: Signal handling support") Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/nios2/kernel/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c
index 15e672d7150e..a5b93a30c6eb 100644
--- a/arch/nios2/kernel/signal.c
+++ b/arch/nios2/kernel/signal.c
@@ -264,6 +264,7 @@ static int do_signal(struct pt_regs *regs)
regs->ea = restart_addr;
break;
}
+ regs->orig_r2 = -1;
}
if (get_signal(&ksig)) {