diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-08 17:09:16 +0200 |
---|---|---|
committer | Dinh Nguyen <dinguyen@kernel.org> | 2022-08-15 18:25:32 +0200 |
commit | 411a76b7219555c55867466c82d70ce928d6c9e1 (patch) | |
tree | 910b99d18c02f8c87c4423d177c16519d1756921 /arch/nios2 | |
parent | nios2: fix syscall restart checks (diff) | |
download | linux-411a76b7219555c55867466c82d70ce928d6c9e1.tar.xz linux-411a76b7219555c55867466c82d70ce928d6c9e1.zip |
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/nios2')
-rw-r--r-- | arch/nios2/kernel/signal.c | 1 |
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)) { |