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
commit 411a76b upstream.

Fixes: b53e906 ("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>
  • Loading branch information
Al Viro authored and Greg Kroah-Hartman committed Aug 25, 2022
1 parent bcb306a commit d264b64
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 @@ -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)) {
Expand Down

0 comments on commit d264b64

Please sign in to comment.