Merge tag 'for-5.11/dm-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux-2.6-microblaze.git] / arch / alpha / kernel / signal.c
index 15bc9d1..948b897 100644 (file)
@@ -527,11 +527,10 @@ do_work_pending(struct pt_regs *regs, unsigned long thread_flags,
                        schedule();
                } else {
                        local_irq_enable();
-                       if (thread_flags & _TIF_SIGPENDING) {
+                       if (thread_flags & (_TIF_SIGPENDING|_TIF_NOTIFY_SIGNAL)) {
                                do_signal(regs, r0, r19);
                                r0 = 0;
                        } else {
-                               clear_thread_flag(TIF_NOTIFY_RESUME);
                                tracehook_notify_resume(regs);
                        }
                }