summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-08 18:09:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-25 12:09:30 +0300
commitd264b646ea0dd98c6ccaaf9b5c65868a2b632555 (patch)
treed712978333462575503defada36abdccec574e92
parentbcb306aadd9fde6fc61126eceea1678f30ec68ec (diff)
downloadlinux-d264b646ea0dd98c6ccaaf9b5c65868a2b632555.tar.xz
nios2: restarts apply only to the first sigframe we build...
commit 411a76b7219555c55867466c82d70ce928d6c9e1 upstream. Fixes: b53e906d255d ("nios2: Signal handling support") Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 34588df93e35..c1be8e194138 100644
--- a/arch/nios2/kernel/signal.c
+++ b/arch/nios2/kernel/signal.c
@@ -261,6 +261,7 @@ static int do_signal(struct pt_regs *regs)
regs->ea = restart_addr;
break;
}
+ regs->orig_r2 = -1;
}
if (get_signal(&ksig)) {