mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
bec592aa87
commit
43dbf83aa2
1 file changed
+1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user