aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-12-14 16:07:35 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-18 11:26:27 -0600
commit15ff7705444ab9663189946d6d648431e0649df1 (patch)
tree30e64baae52d89be704df33ccd5d7cbb48abdb30 /vl.c
parentd8bcbabf260a4ecce73180991cad576de850b66d (diff)
Check rom_load_all() return value.
Check rom_load_all() return value. Also don't make option rom loading failure fatal. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 95abe7e67f..8d9d9c239a 100644
--- a/vl.c
+++ b/vl.c
@@ -6049,7 +6049,10 @@ int main(int argc, char **argv, char **envp)
qdev_machine_creation_done();
- rom_load_all();
+ if (rom_load_all() != 0) {
+ fprintf(stderr, "rom loading failed\n");
+ exit(1);
+ }
qemu_system_reset();
if (loadvm) {