nios2: restarts apply only to the first sigframe we build...

Fixes: b53e906d25 ("nios2: Signal handling support")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
Al Viro 2022-08-08 16:09:16 +01:00 committed by Dinh Nguyen
parent 2d631bd58f
commit 411a76b721

View File

@ -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)) {