diff options
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index ccf1ceedaebe..136ba2ddc1d6 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -519,6 +519,9 @@ void signal_wake_up(struct task_struct *t, int resume) | |||
519 | 519 | ||
520 | set_tsk_thread_flag(t, TIF_SIGPENDING); | 520 | set_tsk_thread_flag(t, TIF_SIGPENDING); |
521 | 521 | ||
522 | if (unlikely(t == current)) | ||
523 | return; | ||
524 | |||
522 | /* | 525 | /* |
523 | * For SIGKILL, we want to wake it up in the stopped/traced/killable | 526 | * For SIGKILL, we want to wake it up in the stopped/traced/killable |
524 | * case. We don't check t->state here because there is a race with it | 527 | * case. We don't check t->state here because there is a race with it |