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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:14 +0000 (09:28 +0100)
commit42c3f4c55f10102b3e522ae99754a9a0ea41235d
tree462fecce456f92037363560039a842346a8a02a5
parentcf6668d57a26e7d72d12117e9aba0c3c1578bfc5
KVM: arm/arm64: vgic-irqfd: Fix MSI entry allocation

commit 150009e2c70cc3c6e97f00e7595055765d32fb85 upstream.

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")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic-irqfd.c