summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2013-04-21 09:10:35 +0000
committerae <ae@FreeBSD.org>2013-04-21 09:10:35 +0000
commit77bba67eefea6c232b9fda0d8ee5148bf5980a98 (patch)
treebba43e6d1e28ecc0c3303e21c751927042bbfd19 /sys/boot/common
parentd3e64b0dcc9d06a6d981586ed378ba4ad72ca6c1 (diff)
downloadFreeBSD-src-77bba67eefea6c232b9fda0d8ee5148bf5980a98.zip
FreeBSD-src-77bba67eefea6c232b9fda0d8ee5148bf5980a98.tar.gz
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
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index 5808587..e450fbd 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;
}
OpenPOWER on IntegriCloud