[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V15 14/18] pci: Use of qemu_put_ram_ptr in pci_add_o
From: |
anthony.perard |
Subject: |
[Qemu-devel] [PATCH V15 14/18] pci: Use of qemu_put_ram_ptr in pci_add_option_rom. |
Date: |
Thu, 5 May 2011 11:58:29 +0100 |
From: John Baboval <address@hidden>
Prevent a deadlock caused by leaving a map cache bucket locked by the
preceding qemu_get_ram_ptr() call.
Signed-off-By: John Baboval <address@hidden>
Signed-off-by: Anthony PERARD <address@hidden>
---
hw/pci.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
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);
--
1.7.2.5
- [Qemu-devel] [PATCH V15 05/18] pc_memory_init: Move memory calculation to the caller., (continued)
- [Qemu-devel] [PATCH V15 05/18] pc_memory_init: Move memory calculation to the caller., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 01/18] xen: Replace some tab-indents with spaces (clean-up)., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 06/18] xen: Add xenfv machine, anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 07/18] pc, Disable vmport initialisation with Xen., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 08/18] piix_pci: Introduces Xen specific call for irq., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 09/18] xen: Introduce Xen Interrupt Controller, anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 11/18] xen: Adds a cap to the number of map cache entries., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 10/18] xen: Introduce the Xen mapcache, anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 12/18] Introduce qemu_put_ram_ptr, anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 13/18] configure: Always use 64bits target physical addresses with xen enabled., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 14/18] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.,
anthony.perard <=
- [Qemu-devel] [PATCH V15 15/18] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 17/18] xen: Set running state in xenstore., anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 16/18] xen: Initialize event channels and io rings, anthony.perard, 2011/05/05
- [Qemu-devel] [PATCH V15 18/18] xen: Add Xen hypercall for sleep state in the cmos_s3 callback., anthony.perard, 2011/05/05
- Re: [Qemu-devel] [PATCH V15 00/18] Xen device model support, Alexander Graf, 2011/05/09