[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 14/32] pic: Don't allocate irq buffers
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@xxxxxxxxxx> --- hw/pc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 7359338..09b4af4 100644 --- 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) { -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |