Commit 2f15b792 authored by Shannon Zhao's avatar Shannon Zhao Committed by Peter Maydell
Browse files

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: default avatarShannon Zhao <zhaoshenglong@huawei.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Message-id: 1527750994-14360-1-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 6e3e7239
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment