]> git.proxmox.com Git - mirror_qemu.git/commit
KVM: GIC: Fix memory leak due to calling kvm_init_irq_routing twice
authorShannon Zhao <zhaoshenglong@huawei.com>
Thu, 31 May 2018 07:16:34 +0000 (15:16 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 31 May 2018 15:32:35 +0000 (16:32 +0100)
commit2f15b79280cf71b7991dfd3f0312a1797630e376
treef5b645728c9e6e164aaae9ec214222dd3ac54a7b
parent6e3e723966197463117642d8a5fd7b4f6446e510
KVM: GIC: Fix memory leak due to calling kvm_init_irq_routing twice

kvm_irqchip_create called by kvm_init will call kvm_init_irq_routing to
initialize global capability variables. If we call kvm_init_irq_routing in
GIC realize function, previous allocated memory will leak.

Fix this by deleting the unnecessary call.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1527750994-14360-1-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gic_kvm.c
hw/intc/arm_gicv3_kvm.c