blob: a86c842dde2ecad136123b8fcd3cf71934f2280a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/com32/lib/syslinux/tests/load_linux.c b/com32/lib/syslinux/tests/load_linux.c
index ed973841..751b8b24 100644
--- a/com32/lib/syslinux/tests/load_linux.c
+++ b/com32/lib/syslinux/tests/load_linux.c
@@ -38,8 +38,10 @@ int syslinux_shuffle_boot_rm(struct syslinux_movelist *fraglist,
while (ml) {
addr_t cmdline_addr, last_lowmem_addr;
- if (ml->src != __test_cmdline)
+ if (ml->src != __test_cmdline) {
+ ml = ml->next;
continue;
+ }
last_lowmem_addr = __test_cmdline_addr;
cmdline_addr = ml->dst;
|