qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT b96bf49] rom loader: also try filename as-is.


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT b96bf49] rom loader: also try filename as-is.
Date: Mon, 12 Oct 2009 15:19:31 -0000

From: Gerd Hoffmann <address@hidden>

In case qemu_find_file fails try to open the file as-is.

Patchworks-ID: 35263
Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/loader.c b/hw/loader.c
index f38b994..7aa1a67 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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]