Ensure that grub_reboot doesn't return on emu.
Use grub_fatal if longjmp fails. grub_reboot is marked as noreturn so return would cause a crash.
This commit is contained in:
parent
bec592aa87
commit
43dbf83aa2
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ void
|
||||||
grub_reboot (void)
|
grub_reboot (void)
|
||||||
{
|
{
|
||||||
longjmp (main_env, 1);
|
longjmp (main_env, 1);
|
||||||
|
grub_fatal ("longjmp failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue