]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] Remove bogus BUG() in kernel/exit.c
authorakpm@osdl.org <akpm@osdl.org>
Wed, 11 May 2005 22:29:03 +0000 (15:29 -0700)
committerGreg KH <gregkh@suse.de>
Thu, 12 May 2005 17:00:24 +0000 (10:00 -0700)
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 <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/exit.c

index f40a50f6985082151159d1847f49b868a8887d13..d462a1f7c2f0518cbd3b6f14a94c3b820c78a6f2 100644 (file)
@@ -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)