diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-06-24 13:37:59 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-06-24 13:37:59 +0000 |
commit | 9bb0438535d29329f6a01a136caa2f2ad79fdceb (patch) | |
tree | ed44ef0c6bd231abd1252487f04f66b1ff1079bf /util/cbfstool/cbfstool.c | |
parent | 980a69b8c20ad975553980ccb320bf25ff7c0b16 (diff) |
fix return value checks of cbfstool's writerom
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5644 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r-- | util/cbfstool/cbfstool.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 1d8b7c6b74..4c3a8c925e 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -83,7 +83,8 @@ static int cbfs_add(int argc, char **argv) cbfsfile = create_cbfs_file(cbfsname, filedata, &filesize, type, &base); if (add_file_to_cbfs(cbfsfile, filesize, base)) return 1; - writerom(romname, rom, romsize); + if (writerom(romname, rom, romsize)) + return 1; return 0; } @@ -131,7 +132,8 @@ static int cbfs_add_payload(int argc, char **argv) CBFS_COMPONENT_PAYLOAD, &base); if (add_file_to_cbfs(cbfsfile, filesize, base)) return 1; - writerom(romname, rom, romsize); + if (writerom(romname, rom, romsize)) + return 1; return 0; } @@ -180,7 +182,8 @@ static int cbfs_add_stage(int argc, char **argv) if (add_file_to_cbfs(cbfsfile, filesize, base)) return 1; - writerom(romname, rom, romsize); + if (writerom(romname, rom, romsize)) + return 1; return 0; } |