[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-traditional stable-4.6] pic: Don't allocate irq buffers
commit c36a4e522bfa615f38fbf71d7da483fefc8900f2 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Tue Apr 21 14:36:08 2015 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Oct 16 16:52:06 2015 +0100 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 files changed, 1 insertions(+), 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) { -- generated by git-patchbot for /home/xen/git/qemu-xen-traditional.git#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |