diff options
Diffstat (limited to 'src/devices/pci_device.c')
-rw-r--r-- | src/devices/pci_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/pci_device.c b/src/devices/pci_device.c index 7c8a758116..c872b01c38 100644 --- a/src/devices/pci_device.c +++ b/src/devices/pci_device.c @@ -332,6 +332,8 @@ static void pci_get_rom_resource(struct device *dev, unsigned long index) * inited by driver_pci_onboard_ops::enable_dev() */ if ((dev->on_mainboard) && (dev->rom_address != 0)) { resource->base = dev->rom_address; + /* The resource allocator needs the size to be non-zero. */ + resource->size = 0x100; resource->flags |= IORESOURCE_MEM | IORESOURCE_READONLY | IORESOURCE_ASSIGNED | IORESOURCE_FIXED; } |