From 2edace134c323e47c3ad23f4635deb3d14a556b3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 13 Dec 2009 11:19:01 -0500 Subject: [PATCH] Fix use before free in boot_cbfs (boot.c). --- src/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5