diff options
Diffstat (limited to 'arch/um/kernel/signal.c')
-rw-r--r-- | arch/um/kernel/signal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/um/kernel/signal.c b/arch/um/kernel/signal.c index 292e706016c5..6acf13c1740b 100644 --- a/arch/um/kernel/signal.c +++ b/arch/um/kernel/signal.c | |||
@@ -130,10 +130,8 @@ static int kern_do_signal(struct pt_regs *regs) | |||
130 | * if there's no signal to deliver, we just put the saved sigmask | 130 | * if there's no signal to deliver, we just put the saved sigmask |
131 | * back | 131 | * back |
132 | */ | 132 | */ |
133 | if (!handled_sig && test_thread_flag(TIF_RESTORE_SIGMASK)) { | 133 | if (!handled_sig) |
134 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 134 | restore_saved_sigmask(); |
135 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | ||
136 | } | ||
137 | return handled_sig; | 135 | return handled_sig; |
138 | } | 136 | } |
139 | 137 | ||