提交 b96bf493 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

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: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 3c178e72
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册