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

Commit 54306cf0 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

[PATCH] exit: fix crash case



If we are going to BUG() not panic() here then we should cover the case of
the BUG being compiled out

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3cfd0885
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -963,7 +963,8 @@ fastcall NORET_TYPE void do_exit(long code)
	schedule();
	BUG();
	/* Avoid "noreturn function does return".  */
	for (;;) ;
	for (;;)
		cpu_relax();	/* For when BUG is null */
}

EXPORT_SYMBOL_GPL(do_exit);