[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V14 13/17] pci: Use of qemu_put_ram_ptr in pci_add_o

From: anthony.perard
Subject: [Qemu-devel] [PATCH V14 13/17] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.
Date: Wed, 20 Apr 2011 17:42:02 +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 
         pci_patch_ids(pdev, ptr, size);
+    qemu_put_ram_ptr(ptr);
     pci_register_bar(pdev, PCI_ROM_SLOT, size,
                      0, pci_map_option_rom);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]