]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: selftests: Allocate vcpus with correct size
authorZenghui Yu <zenghui.yu@linux.dev>
Wed, 8 Oct 2025 15:45:20 +0000 (23:45 +0800)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:27:55 +0000 (14:27 +0100)
commit2192d348c0aa0cc2e7249dc3709f21bfe0a0170c
tree6644de984b0c02a714a5fe75477707bb1a0f0ab2
parentc35dd838666d47de2848639234ec32e3ba22b49f
KVM: arm64: selftests: Allocate vcpus with correct size

vcpus array contains pointers to struct kvm_vcpu {}. It is way overkill
to allocate the array with (nr_cpus * sizeof(struct kvm_vcpu)). Fix the
allocation by using the correct size.

Signed-off-by: Zenghui Yu <zenghui.yu@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c