commit | 2edace134c323e47c3ad23f4635deb3d14a556b3 | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Sun Dec 13 11:19:01 2009 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Sun Dec 13 11:19:01 2009 -0500 |
tree | 24a13e4a8172f3e35293bddf7b4820186617c7e7 | |
parent | 58db9c492da57b2b71af2200f39d2262d719c142 [diff] |
Fix use before free in boot_cbfs (boot.c).
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 @@ 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)