s390: add support for TIF_NOTIFY_SIGNAL
[linux-2.6-microblaze.git] / arch / s390 / kernel / signal.c
index 9e900a8..b27b6c1 100644 (file)
@@ -472,7 +472,7 @@ void do_signal(struct pt_regs *regs)
        current->thread.system_call =
                test_pt_regs_flag(regs, PIF_SYSCALL) ? regs->int_code : 0;
 
-       if (get_signal(&ksig)) {
+       if (test_thread_flag(TIF_SIGPENDING) && get_signal(&ksig)) {
                /* Whee!  Actually deliver the signal.  */
                if (current->thread.system_call) {
                        regs->int_code = current->thread.system_call;