diff options
| author | Anthony Liguori | 2013-01-04 20:25:20 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2013-01-04 20:25:20 +0100 |
| commit | a4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6 (patch) | |
| tree | 1ede9905efbe4429fd8a49efc6d255fc425296ef /hw/pc_sysfw.c | |
| parent | Merge remote-tracking branch 'kraxel/testdev.1' into staging (diff) | |
| parent | spice: drop incorrect vm_change_state_handler() opaque (diff) | |
| download | qemu-a4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6.tar.gz qemu-a4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6.tar.xz qemu-a4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6.zip | |
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.c | 4 |
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"); |
