Ensure that grub_reboot doesn't return on emu.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 23 Jan 2017 20:32:25 +0000 (23:32 +0300)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 27 Jan 2017 20:10:23 +0000 (20:10 +0000)
Use grub_fatal if longjmp fails.

grub_reboot is marked as noreturn so return would cause
a crash.

grub-core/kern/emu/main.c

index f91280f..425bb96 100644 (file)
@@ -63,6 +63,7 @@ void
 grub_reboot (void)
 {
   longjmp (main_env, 1);
+  grub_fatal ("longjmp failed");
 }
 
 void