projects
/
grub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec592a
)
Ensure that grub_reboot doesn't return on emu.
author
Vladimir Serbinenko
<phcoder@gmail.com>
Mon, 23 Jan 2017 20:32:25 +0000
(23:32 +0300)
committer
Vladimir 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
patch
|
blob
|
history
diff --git
a/grub-core/kern/emu/main.c
b/grub-core/kern/emu/main.c
index
f91280f
..
425bb96
100644
(file)
--- a/
grub-core/kern/emu/main.c
+++ b/
grub-core/kern/emu/main.c
@@
-63,6
+63,7
@@
void
grub_reboot (void)
{
longjmp (main_env, 1);
+ grub_fatal ("longjmp failed");
}
void