See attached.

Thanks,
Ward.

-- 
Ward Vandewege <[email protected]>
Free Software Foundation - Senior Systems Administrator
This patch fixes a segfault when a file too large to fit is added to a rom
image.

Signed-off-by: Ward Vandewege <[email protected]>

Index: fs.c
===================================================================
--- fs.c	(revision 4281)
+++ fs.c	(working copy)
@@ -99,7 +99,7 @@
 {
 	/* walk the rom and find an empty file with a base > base, and a large enough size */
 	unsigned int offset = ntohl(rom->header->offset);
-	unsigned int ret = -1;
+	int ret = -1;
 	struct cbfs_file *c = NULL;
 	unsigned long nextoffset, truncoffset;
 	struct cbfs_file *newfile = NULL;
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to