Skip to content

Commit

Permalink
nios2: restarts apply only to the first sigframe we build...
Browse files Browse the repository at this point in the history
Fixes: b53e906 ("nios2: Signal handling support")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
  • Loading branch information
Al Viro authored and Dinh Nguyen committed Aug 15, 2022
1 parent 2d631bd commit 411a76b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/nios2/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 411a76b

Please sign in to comment.