Skip to content

Commit

Permalink
um: ->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 <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 21, 2012
1 parent 76e10d1 commit 3b7d15b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/um/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ static int handle_signal(struct pt_regs *regs, unsigned long signr,
unsigned long sp;
int err;

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

/* Did we come from a system call? */
if (PT_REGS_SYSCALL_NR(regs) >= 0) {
/* If so, check system call restarting.. */
Expand Down
3 changes: 3 additions & 0 deletions arch/x86/um/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ static int copy_sc_from_user(struct pt_regs *regs,
struct sigcontext sc;
int err, pid;

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

err = copy_from_user(&sc, from, sizeof(sc));
if (err)
return err;
Expand Down

0 comments on commit 3b7d15b

Please sign in to comment.