diff options
Diffstat (limited to 'util/cbfstool/util.c')
-rw-r--r-- | util/cbfstool/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/util.c b/util/cbfstool/util.c index f0c0b293cf..f77b74634b 100644 --- a/util/cbfstool/util.c +++ b/util/cbfstool/util.c @@ -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. */ |