Commit c06fec50 authored by Linus Torvalds's avatar Linus Torvalds

Remove bogus BUG() in kernel/exit.c

It's old sanity checking that may have been useful for debugging, but
is just bogus these days.

Noticed by Mattia Belletti.
parent 42d4dc3f
...@@ -517,8 +517,6 @@ static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_re ...@@ -517,8 +517,6 @@ static inline void choose_new_parent(task_t *p, task_t *reaper, task_t *child_re
*/ */
BUG_ON(p == reaper || reaper->exit_state >= EXIT_ZOMBIE); BUG_ON(p == reaper || reaper->exit_state >= EXIT_ZOMBIE);
p->real_parent = reaper; p->real_parent = reaper;
if (p->parent == p->real_parent)
BUG();
} }
static inline void reparent_thread(task_t *p, task_t *father, int traced) static inline void reparent_thread(task_t *p, task_t *father, int traced)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment