From 1a113e1144113348e04cbe39fa81a448049e82a0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 2 Aug 2013 14:12:09 -0400 Subject: Fix bug in CBFS file walking with compressed files. The file walking code was incorrectly using the uncompressed file size when searching for the next file. Signed-off-by: Kevin O'Connor --- src/coreboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/coreboot.c b/src/coreboot.c index 7f7b322..983a2b5 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -407,7 +407,7 @@ coreboot_cbfs_init(void) } romfile_add(&cfile->file); - fhdr = (void*)ALIGN((u32)cfile->data + cfile->file.size + fhdr = (void*)ALIGN((u32)cfile->data + cfile->rawsize , be32_to_cpu(hdr->align)); } } -- cgit v1.1