Skip to content

Commit

Permalink
Remove bogus BUG() in kernel/exit.c
Browse files Browse the repository at this point in the history
It's old sanity checking that may have been useful for debugging, but
is just bogus these days.

Noticed by Mattia Belletti.
  • Loading branch information
Linus Torvalds committed Apr 29, 2005
1 parent 42d4dc3 commit c06fec5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
p->real_parent = reaper;
if (p->parent == p->real_parent)
BUG();
}

static inline void reparent_thread(task_t *p, task_t *father, int traced)
Expand Down

0 comments on commit c06fec5

Please sign in to comment.