]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: arm64: its: Fix missing dynamic allocation check in scan_its_table
authorChristoffer Dall <christoffer.dall@linaro.org>
Fri, 13 Oct 2017 09:40:11 +0000 (11:40 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 13 Oct 2017 17:49:48 +0000 (19:49 +0200)
commit8c1a8a32438b95792bbd8719d1cd4fe36e9eba03
tree1284583b20609d07db7dd30ebc61c5a1b8d7327b
parent8a5776a5f49812d29fe4b2d0a2d71675c3facf3f
KVM: arm64: its: Fix missing dynamic allocation check in scan_its_table

We currently allocate an entry dynamically, but we never check if the
allocation actually succeeded.  We actually don't need a dynamic
allocation, because we know the maximum size of an ITS table entry, so
we can simply use an allocation on the stack.

Cc: <stable@vger.kernel.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic/vgic-its.c