aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 72a809a54d5b..9d458504e3a6 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5279,7 +5279,7 @@ static void migrate_dead(unsigned int dead_cpu, struct task_struct *p)
5279 struct rq *rq = cpu_rq(dead_cpu); 5279 struct rq *rq = cpu_rq(dead_cpu);
5280 5280
5281 /* Must be exiting, otherwise would be on tasklist. */ 5281 /* Must be exiting, otherwise would be on tasklist. */
5282 BUG_ON(p->exit_state != EXIT_ZOMBIE && p->exit_state != EXIT_DEAD); 5282 BUG_ON(!p->exit_state);
5283 5283
5284 /* Cannot have done final schedule yet: would have vanished. */ 5284 /* Cannot have done final schedule yet: would have vanished. */
5285 BUG_ON(p->state == TASK_DEAD); 5285 BUG_ON(p->state == TASK_DEAD);