aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-10-07 13:37:07 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-12 09:42:32 -0500
commitb96bf49306e061197058b725f5b44e8294e12486 (patch)
treec575691c7b2a416ab394fcfc527dbf135f5c782f
parent3c178e72e065b88436fed7d89bd75635d84df36c (diff)
rom loader: also try filename as-is.
In case qemu_find_file fails try to open the file as-is. Patchworks-ID: 35263 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/loader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/loader.c b/hw/loader.c
index f38b994a51..7aa1a676e6 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -559,8 +559,7 @@ int rom_add_file(const char *file,
rom->name = qemu_strdup(file);
rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name);
if (rom->path == NULL) {
- fprintf(stderr, "Could not find option rom '%s'\n", rom->name);
- goto err;
+ rom->path = strdup(file);
}
fd = open(rom->path, O_RDONLY | O_BINARY);