From: Al Viro Date: Mon, 8 Aug 2022 15:09:16 +0000 (+0100) Subject: nios2: restarts apply only to the first sigframe we build... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06acb4197b5ae8212cc6b8c4436e9a8190f32f1d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nios2: restarts apply only to the first sigframe we build... commit 411a76b7219555c55867466c82d70ce928d6c9e1 upstream. Fixes: b53e906d255d ("nios2: Signal handling support") Signed-off-by: Al Viro Signed-off-by: Dinh Nguyen Signed-off-by: Greg Kroah-Hartman --- 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)) {