Skip to contentSkip to conversation

avr32: clear TIF_RESTORE_SIGMASK when signal is delivered...

PATCH In review Al Viro 1 participant 1 message Dec 15, 2010

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 4/6 avr32: clear TIF_RESTORE_SIGMASK when signal is delivered...

---
 arch/avr32/kernel/signal.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/avr32/kernel/signal.c +4 -0
index 25090d6..b9fa924 100644
@@ -244,6 +244,10 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
 		sigaddset(&current->blocked, sig);
 	recalc_sigpending();
 	spin_unlock_irq(&current->sighand->siglock);
+
+	/* mask saved on sigframe we'd set up */
+	clear_thread_flag(TIF_RESTORE_SIGMASK);
+
 	return;
 
 fail:
Signature · 1 line
1.5.6.5