mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
pc: don't access fw cfg if NULL
commit f8c457b88d
"pc: pass PCI hole ranges to Guests"
broke Xen as it has no fw_cfg.
Check for this configuration and boil out.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
+1
-1
@@ -1000,7 +1000,7 @@ typedef struct PcRomPciInfo {
|
||||
static void pc_fw_cfg_guest_info(PcGuestInfo *guest_info)
|
||||
{
|
||||
PcRomPciInfo *info;
|
||||
if (!guest_info->has_pci_info) {
|
||||
if (!guest_info->has_pci_info || !guest_info->fw_cfg) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user