summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/freezer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/freezer.c b/kernel/freezer.c
index c3496c6a91b2..389549f0a94e 100644
--- a/kernel/freezer.c
+++ b/kernel/freezer.c
@@ -93,9 +93,10 @@ static void fake_signal_wake_up(struct task_struct *p)
{
unsigned long flags;
- spin_lock_irqsave(&p->sighand->siglock, flags);
- signal_wake_up(p, 0);
- spin_unlock_irqrestore(&p->sighand->siglock, flags);
+ if (lock_task_sighand(p, &flags)) {
+ signal_wake_up(p, 0);
+ unlock_task_sighand(p, &flags);
+ }
}
/**