| Submitter | Anthony PERARD |
|---|---|
| Date | May 5, 2011, 10:58 a.m. |
| Message ID | <1304593113-10689-15-git-send-email-anthony.perard@citrix.com> |
| Download | mbox | patch |
| Permalink | /patch/94246/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/pci.c b/hw/pci.c index 6b577e1..2b24dd4 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1897,6 +1897,8 @@ static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) pci_patch_ids(pdev, ptr, size); } + qemu_put_ram_ptr(ptr); + pci_register_bar(pdev, PCI_ROM_SLOT, size, 0, pci_map_option_rom);