mn10300: ->restart_block.fn needs to be reset on sigreturn
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 26 Sep 2010 18:28:52 +0000 (19:28 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 27 Sep 2010 19:19:53 +0000 (12:19 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/kernel/signal.c

index 4ef99256fa498b9dd38f3f828ff82b68c06d544c..5a2c0040b166d2587ccc01f4a45a7c21ffd14056 100644 (file)
@@ -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);