From: akpm@osdl.org Date: Wed, 11 May 2005 22:29:03 +0000 (-0700) Subject: [PATCH] Remove bogus BUG() in kernel/exit.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff50504a94b7cd817f856cca5db69f01b2cebabf;p=thirdparty%2Fkernel%2Fstable.git [PATCH] Remove bogus BUG() in kernel/exit.c 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. Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/exit.c b/kernel/exit.c index f40a50f698508..d462a1f7c2f05 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -516,8 +516,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)