Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c06fec50 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)