aboutsummaryrefslogtreecommitdiff
path: root/hw/pc_sysfw.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-01-04 13:25:20 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2013-01-04 13:25:20 -0600
commita4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6 (patch)
tree1ede9905efbe4429fd8a49efc6d255fc425296ef /hw/pc_sysfw.c
parent346c1f8b52afca515fecf95d5c215751b73fe9e1 (diff)
parentbfb82a28752d29291adf932c3a9941e8383203af (diff)
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
* stefanha/trivial-patches: spice: drop incorrect vm_change_state_handler() opaque linux-user/syscall.c: remove forward declarations hw/mcf5206: Reduce size of lookup table Remove --sparc_cpu option from the configure list pseries: Remove unneeded include statement (fixes MinGW builds) pc_sysfw: Check for qemu_find_file() failure Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc_sysfw.c')
-rw-r--r--hw/pc_sysfw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pc_sysfw.c b/hw/pc_sysfw.c
index 87e1fa961b..7567593a63 100644
--- a/hw/pc_sysfw.c
+++ b/hw/pc_sysfw.c
@@ -84,6 +84,10 @@ static void pc_fw_add_pflash_drv(void)
bios_name = BIOS_FILENAME;
}
filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);
+ if (!filename) {
+ error_report("Can't open BIOS image %s", bios_name);
+ exit(1);
+ }
opts = drive_add(IF_PFLASH, -1, filename, "readonly=on");