aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-05-21 23:42:15 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-06-01 12:58:49 -0400
commita610d6e672d6d3723e8da257ad4a8a288a8f2f89 (patch)
tree2fac6ce7f72756771f4f87583205cc402589dcad /arch/m32r
parent5754f412a3f107cbcd93ee125bef296f2a07539b (diff)
pull clearing RESTORE_SIGMASK into block_sigmask()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m32r')
-rw-r--r--arch/m32r/kernel/signal.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c
index e0d6d1079f33..970f46dbf24f 100644
--- a/arch/m32r/kernel/signal.c
+++ b/arch/m32r/kernel/signal.c
@@ -267,7 +267,7 @@ static int prev_insn(struct pt_regs *regs)
267 * OK, we're invoking a handler 267 * OK, we're invoking a handler
268 */ 268 */
269 269
270static int 270static void
271handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, 271handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
272 struct pt_regs *regs) 272 struct pt_regs *regs)
273{ 273{
@@ -295,10 +295,9 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
295 295
296 /* Set up the stack frame */ 296 /* Set up the stack frame */
297 if (setup_rt_frame(sig, ka, info, sigmask_to_save(), regs)) 297 if (setup_rt_frame(sig, ka, info, sigmask_to_save(), regs))
298 return -EFAULT; 298 return;
299 299
300 block_sigmask(ka, sig); 300 block_sigmask(ka, sig);
301 return 0;
302} 301}
303 302
304/* 303/*
@@ -333,8 +332,7 @@ static void do_signal(struct pt_regs *regs)
333 */ 332 */
334 333
335 /* Whee! Actually deliver the signal. */ 334 /* Whee! Actually deliver the signal. */
336 if (handle_signal(signr, &ka, &info, regs) == 0) 335 handle_signal(signr, &ka, &info, regs);
337 clear_thread_flag(TIF_RESTORE_SIGMASK);
338 336
339 return; 337 return;
340 } 338 }