]> git.proxmox.com Git - qemu.git/commitdiff
rom loader: also try filename as-is.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Oct 2009 11:37:07 +0000 (13:37 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Oct 2009 14:42:32 +0000 (09:42 -0500)
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>
hw/loader.c

index f38b994a51f39b11ffc425143f99ca0d8e86ee57..7aa1a676e6a69e925f147969b32a41da05f032fd 100644 (file)
@@ -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);