From: Linus Torvalds Date: Fri, 29 Apr 2005 16:37:07 +0000 (-0700) Subject: Remove bogus BUG() in kernel/exit.c X-Git-Tag: v2.6.12-rc4~136^2~198 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c06fec5022ebe014af876da2df4a0eee836e97c8;p=linux-2.6 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. --- diff --git a/kernel/exit.c b/kernel/exit.c index 39d35935b3..93851bcd95 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -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)