aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-12-13 11:19:01 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-12-13 11:19:01 -0500
commit2edace134c323e47c3ad23f4635deb3d14a556b3 (patch)
tree24a13e4a8172f3e35293bddf7b4820186617c7e7
parent58db9c492da57b2b71af2200f39d2262d719c142 (diff)
downloadseabios-hppa-2edace134c323e47c3ad23f4635deb3d14a556b3.zip
seabios-hppa-2edace134c323e47c3ad23f4635deb3d14a556b3.tar.gz
seabios-hppa-2edace134c323e47c3ad23f4635deb3d14a556b3.tar.bz2
Fix use before free in boot_cbfs (boot.c).
-rw-r--r--src/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot.c b/src/boot.c
index d80eae4..05de715 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -422,7 +422,7 @@ boot_cbfs(struct ipl_entry_s *ie)
if (! CONFIG_COREBOOT_FLASH)
return;
int count = ie->subchoice;
- struct cbfs_file *file;
+ struct cbfs_file *file = NULL;
for (;;) {
file = cbfs_findprefix("img/", file);
if (!file)