[syslinux] [PATCH] elflink: fix return from execute()
Sebastian Herbszt
herbszt at gmx.de
Sun Jul 1 11:13:00 PDT 2012
Fix return from execute() if type == KT_NONE.
Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>
---
com32/elflink/ldlinux/execute.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c
index f713eb1..899154c 100644
--- a/com32/elflink/ldlinux/execute.c
+++ b/com32/elflink/ldlinux/execute.c
@@ -108,7 +108,7 @@ void execute(const char *cmdline, enum kernel_type type)
local_boot(strtoul(kernel, NULL, 0));
} else if (type == KT_PXE || type == KT_BSS || type == KT_BOOT) {
chainboot_file(kernel, type);
- } else {
+ } else if (type == KT_KERNEL) {
/* Need add one item for kernel load, as we don't use
* the assembly runkernel.inc any more */
new_linux_kernel((char *)kernel, (char *)cmdline);
--
1.7.3.4
More information about the Syslinux
mailing list