KVM: arm/arm64: vgic-irqfd: Fix MSI entry allocation
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 16 Nov 2017 17:58:15 +0000 (17:58 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Nov 2017 15:46:12 +0000 (16:46 +0100)
commit150009e2c70cc3c6e97f00e7595055765d32fb85
tree4157496826da42e664abea27e0507862e3743425
parent285a90e36b138b707c4a9850f2500774b7191c99
KVM: arm/arm64: vgic-irqfd: Fix MSI entry allocation

Using the size of the structure we're allocating is a good idea
and avoids any surprise... In this case, we're happilly confusing
kvm_kernel_irq_routing_entry and kvm_irq_routing_entry...

Fixes: 95b110ab9a09 ("KVM: arm/arm64: Enable irqchip routing")
Cc: stable@vger.kernel.org # 4.8
Reported-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-irqfd.c