cbfstool reacts to a too large bootblock file by stopping

with an error code now.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4329 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Patrick Georgi 2009-06-01 20:02:21 +00:00
parent fff87d31ca
commit c7a6447c8f
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ int create_rom(struct rom *rom, const unsigned char *filename,
rom->header->align = htonl(align);
rom->header->offset = htonl(0);
add_bootblock(rom, bootblockname);
if (add_bootblock(rom, bootblockname) == -1)
return -1;
/* Write the cbfs master header address at the end of the ROM. */