avr32: need to clear RESTORE_SIGMASK on successful signal delivery
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 May 2012 13:52:37 +0000 (09:52 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 May 2012 03:58:08 +0000 (23:58 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/avr32/kernel/signal.c

index a4855ae..ae386c3 100644 (file)
@@ -247,6 +247,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
         * Block the signal if we were successful.
         */
        block_sigmask(ka, sig);
+       clear_thread_flag(TIF_RESTORE_SIGMASK);
 }
 
 /*