]> git.baikalelectronics.ru Git - 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)
commit9cc41e813b1cfa0e72cf45e13fd8ecd279e8ceda
tree1284583b20609d07db7dd30ebc61c5a1b8d7327b
parentfb8141d6423a2379f3dbd29ab43279906f1659cd
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