Skip to content

Commit

Permalink
mn10300: ->restart_block.fn needs to be reset on sigreturn
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and torvalds committed Sep 27, 2010
1 parent 00cbf60 commit c05628b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/mn10300/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ static int restore_sigcontext(struct pt_regs *regs,
{
unsigned int err = 0;

/* Always make any pending restarted system calls return -EINTR */
current_thread_info()->restart_block.fn = do_no_restart_syscall;

if (is_using_fpu(current))
fpu_kill_state(current);

Expand Down

0 comments on commit c05628b

Please sign in to comment.