--- pci.c.orig 2007-02-06 09:16:32.000000000 -0800 +++ pci.c 2007-02-06 09:15:40.000000000 -0800 @@ -93,6 +93,10 @@ return NULL; found: ; } + + /* Verify the instance size meets the minimum size */ + instance_size = MAX(instance_size,sizeof(PCIDevice)); + pci_dev = qemu_mallocz(instance_size); if (!pci_dev) return NULL;