]> xenbits.xensource.com Git - qemu-xen-traditional.git/commitdiff
pic: Don't allocate irq buffers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Apr 2015 13:36:08 +0000 (14:36 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Oct 2015 15:52:06 +0000 (16:52 +0100)
i8259_init() doesn't inspect its argument at all, causing the allocation to
be leaked and never used.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 7359338194ac5c52bdf813d0c1512039046aee62..09b4af472ab126e67329174d10c25b30623d9c1e 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -801,7 +801,6 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,
     PCIBus *pci_bus;
     int piix3_devfn = -1;
     CPUState *env;
-    qemu_irq *cpu_irq;
     qemu_irq *i8259;
     int index;
     BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
@@ -970,8 +969,7 @@ vga_bios_error:
 
     bochs_bios_init();
 
-    cpu_irq = qemu_allocate_irqs(pic_irq_request, NULL, 1);
-    i8259 = i8259_init(cpu_irq[0]);
+    i8259 = i8259_init(NULL);
     ferr_irq = i8259[13];
 
     if (pci_enabled) {