diff options
-rw-r--r-- | arch/sparc/kernel/signal32.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/signal_32.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/signal_64.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c index 3b3a3fc3ce06..2caa556db86d 100644 --- a/arch/sparc/kernel/signal32.c +++ b/arch/sparc/kernel/signal32.c | |||
@@ -874,7 +874,7 @@ void do_signal32(sigset_t *oldset, struct pt_regs * regs, | |||
874 | */ | 874 | */ |
875 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) { | 875 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) { |
876 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; | 876 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; |
877 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | 877 | set_current_blocked(¤t->saved_sigmask); |
878 | } | 878 | } |
879 | } | 879 | } |
880 | 880 | ||
diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c index 030087a63fb6..8ce247ac04cc 100644 --- a/arch/sparc/kernel/signal_32.c +++ b/arch/sparc/kernel/signal_32.c | |||
@@ -575,7 +575,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) | |||
575 | */ | 575 | */ |
576 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) { | 576 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) { |
577 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 577 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
578 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | 578 | set_current_blocked(¤t->saved_sigmask); |
579 | } | 579 | } |
580 | } | 580 | } |
581 | 581 | ||
diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c index f895c4076489..a2b81598d905 100644 --- a/arch/sparc/kernel/signal_64.c +++ b/arch/sparc/kernel/signal_64.c | |||
@@ -595,7 +595,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0) | |||
595 | */ | 595 | */ |
596 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) { | 596 | if (current_thread_info()->status & TS_RESTORE_SIGMASK) { |
597 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; | 597 | current_thread_info()->status &= ~TS_RESTORE_SIGMASK; |
598 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | 598 | set_current_blocked(¤t->saved_sigmask); |
599 | } | 599 | } |
600 | } | 600 | } |
601 | 601 | ||