aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/power/process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 0eb5c420e8ed..179529dc3819 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -25,10 +25,9 @@
25 25
26static inline int freezeable(struct task_struct * p) 26static inline int freezeable(struct task_struct * p)
27{ 27{
28 if ((p == current) || 28 if ((p == current) ||
29 (p->flags & PF_NOFREEZE) || 29 (p->flags & PF_NOFREEZE) ||
30 (p->exit_state == EXIT_ZOMBIE) || 30 (p->exit_state != 0))
31 (p->exit_state == EXIT_DEAD))
32 return 0; 31 return 0;
33 return 1; 32 return 1;
34} 33}