From 584a9cf8bf526aac2eff95b7b6f7d5d519a060ae Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Sun, 21 Apr 2013 09:10:35 +0000 Subject: [PATCH] Since we didn't break the loop, we should set i to -1 to start from the beginning. Submitted by: Steven Hartland MFC after: 1 week --- sys/boot/common/module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index 58085875a29b..e450fbde2c6b 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -289,7 +289,8 @@ file_load(char *filename, vm_offset_t dest, struct preloaded_file **result) break; } else if (last_file_format == i && i != 0) { /* Restart from the beginning */ - last_file_format = i = 0; + i = -1; + last_file_format = 0; fp = NULL; continue; }